155 users online (0 members and 155 guests)  

Thread: send a link


  Results 1 to 3 of 3

Related

  1. Asp send email    Forum: ASP Forum
    Replies: 0
  2. How to send an array to php?    Forum: Javascript Forum
    Replies: 0
  3. Do you want to send this error to Microsoft?    Forum: General Discussion
    Replies: 0
  1. #1
    don2002's Avatar
    New User

    Status
    Offline
    Join Date
    May 2002
    Posts
    2

    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

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    Code:
    <a href="diffpage.php">Send this page to a friend!</a>
    ...different page...

    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.";
    ?>
    Only way I know how If you don't have PHP enabled maybe someone else knows a way.
    Last edited by Derek; 05-02-2002 at 05:28 PM.

  3. #3
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    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 better
    Last edited by Derek; 05-02-2002 at 05:29 PM.



Tags for this Thread