aibrahim
Fri 24th Aug '01, 5:05pm
I have a PHP referral program that emails the message content in a form to a person. Once the email is sent it displays the <a href and </a> tags. I do not want the tags
Here is and example of a run, when I email myself.
//In the Form
Name: Ali
email: alimmail@yahoo.com
message: Hi there check out this poll go vote for it its really cool.
The message posts correctly but I cannot get it to include the website link correctly.
I want the message to include my website name how do I do this correctly
for example this is what happens
Hey whats up hope you get this!!!
This message has been sent to you by Ali
Vote for your opinion at <a href=
"http://www.homepage.com/poll.php"
>the Monthly poll/a>
Poll of the month questionaire:
What do you think of our soccer loss to Ghana?
**** <HTML><A HREF="http://www.homepage.com">Homepage.com<\A></HTML> - where it
happens first ****
This is not what I want, I do not want the <A href tags to appear I just want the link to appear as Homepage.com
Here is the code:
$link_tag = "http://www.homepage.com/poll.php";
$message .= "\n";
$message .= "This message has been sent to you by $name\n";
$message .= "Vote for your opinion at <a href= \"$link_tag\" >www.Homepage.com/poll.php</a>\n";
$message .= "Poll of the month questionaire:\n";
$message .= "$question\n";
$message .= "\n\n\n";
$message .= "**** <HTML><A HREF=\"http://www.Homepage.com\">Homepage.com<\A></HTML> - where it happens first ****";
//here is the mail function
mail($email, "Poll of Opinion Commentary", $message, $headers);
So my final question is how do I implement this line
$message .= "**** <HTML><A HREF=\"http://www.Homepage.com\">Homepage.com<\A></HTML> - where it happens first ****";
to correctly display this in the email message:
***** Homepage.com - where it happens first ****
Here is and example of a run, when I email myself.
//In the Form
Name: Ali
email: alimmail@yahoo.com
message: Hi there check out this poll go vote for it its really cool.
The message posts correctly but I cannot get it to include the website link correctly.
I want the message to include my website name how do I do this correctly
for example this is what happens
Hey whats up hope you get this!!!
This message has been sent to you by Ali
Vote for your opinion at <a href=
"http://www.homepage.com/poll.php"
>the Monthly poll/a>
Poll of the month questionaire:
What do you think of our soccer loss to Ghana?
**** <HTML><A HREF="http://www.homepage.com">Homepage.com<\A></HTML> - where it
happens first ****
This is not what I want, I do not want the <A href tags to appear I just want the link to appear as Homepage.com
Here is the code:
$link_tag = "http://www.homepage.com/poll.php";
$message .= "\n";
$message .= "This message has been sent to you by $name\n";
$message .= "Vote for your opinion at <a href= \"$link_tag\" >www.Homepage.com/poll.php</a>\n";
$message .= "Poll of the month questionaire:\n";
$message .= "$question\n";
$message .= "\n\n\n";
$message .= "**** <HTML><A HREF=\"http://www.Homepage.com\">Homepage.com<\A></HTML> - where it happens first ****";
//here is the mail function
mail($email, "Poll of Opinion Commentary", $message, $headers);
So my final question is how do I implement this line
$message .= "**** <HTML><A HREF=\"http://www.Homepage.com\">Homepage.com<\A></HTML> - where it happens first ****";
to correctly display this in the email message:
***** Homepage.com - where it happens first ****