Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: send to friend script

  1. #1
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default send to friend script

    Does anyone know where I can get a send to friend script that lets you choose of your msn contacts from who to choose and also entering email address manually? please and thank you!

  2. #2
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone please, I have tried searching and all that, but they did not seem to work for me! Thank you!!

  3. #3
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    try here
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  4. #4
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried that, however I got to black page when I tested it.

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    What is the code that you are using? If you post it, we can see what is wrong with it.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #6
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <?php
    $domain = "http://www.hetbestevoordeel.be";
    $subject = "a friend recommends you this site";

    $to = $_POST['to'];
    $page = $_POST['url'];

    $from = "From: hetbestevoordeel.be <bruno@hetbestevoordeel.be>";

    $message = "Hey, I just found an amazing site. Check it out ! ";

    $message .= $domain.$page;

    mail($to, $subject, $message, $from);

    header('Location: '.$domain.page); //redirect to the page they were on.
    ?>
    <<<<<That's located in "tellafriend.php"

    "<form action="tellafriend.php" method="POST">
    <input type="hidden" name="url" value="<?php echo $_SERVER['PHP_SELF'];?>">

    Email to send to: <input type="text" name="to"> <input type="submit" value="Send">
    </form>
    " <<<<<That's located in my normal pages

  7. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You need to change this line to point to your website:

    Code:
    <?php
    $domain = "http://www.hetbestevoordeel.be";
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  8. #8
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Now I get, "The website cannot display the page" when I enter an email address and takes me to "tellafriend.php"

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Did you name the file in the above posts tellafriend.php ?
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #10
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, I did.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •