Thread: send a link
Results 1 to 3 of 3
Related
-
Asp send email Forum: ASP Forum
Replies: 0 -
How to send an array to php? Forum: Javascript Forum
Replies: 0 -
Do you want to send this error to Microsoft? Forum: General Discussion
Replies: 0
-
05-01-2002, 05:31 PM #1
send a link
need help, would like to ad "send this page to a friend" link on our home page. How do i get the e-mail browser to automatically insert the link in the message body using front page or directly inserting the html code, either way. Thanks
-
05-01-2002, 08:10 PM #2Code:
<a href="diffpage.php">Send this page to a friend!</a>
PHP Code:Friends Name: <input type="text" name="name"><br>
Friends E-mail: <input type="text" name="email"><br>
Your Name: <input type="text" name="name2"><br>
Your E-mail: <input type="text" name="email2">Your Email<br>
<input type="Submit" value="Submit" name="submit">
<?php
strip_tags($name);
strip_tags($email);
strip_tags($name2);
strip_tags($email2);
if ($submit) {
mail($email, "This is a great page!", "
Dear $name,\n
Your friend has recommended this page for you to visit for all your blah blah needs:\n
www.blahblah.com/index.php\n
Thank you for your time.", "reply-to: $email2\nfrom: $name2\n");
echo "Your custom thank you message here.";
?>If you don't have PHP enabled maybe someone else knows a way.
Last edited by Derek; 05-02-2002 at 05:28 PM.
-
05-01-2002, 08:18 PM #3
I don't think I like that new url parser I'm tryin to make it so it doesn't add the <a href""> crap but it keeps adding it in, I even told it not to auto add the [url] tag. Just put the url to wherever you want it to go, and not the <a> tag.
edit: Whatever you did, that's betterLast edited by Derek; 05-02-2002 at 05:29 PM.