1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

'email this page to a friend' script

Discussion in 'PHP' started by interval, Apr 26, 2007.

  1. #1
    Hi,

    I want to build a website that allows visitors to send any page to a friand.
    Please help.
    Advanced thanks.
    Interval
     
    interval, Apr 26, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    The entire page or a link to the page ?
     
    krakjoe, Apr 26, 2007 IP
  3. interval

    interval Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for reply.
    First of all you should know I am good in html coding, but zero in php.
    Regarding your question, I'd like to know both scripts and to decide after according to my way of understunding.

    Many thanks
     
    interval, Apr 26, 2007 IP
  4. interval

    interval Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Searching on net I found this page
    http://www.plus2net.com/php_tutorial/tell_friend.php

    It seems that the script may sent a comment including an URL

    I have a question.

    The page presents a HTML form and a PHP script
    I may presume that the form belongs to the page I want to send
    Let's say this page has URL1

    When I press the submit button of this form, the variables
    y_names, y_email, f_name, f_email and y_msg are passed to
    the page tellck.php which contains the PHP script

    Inside of this script I can see the command
    $ref=@$HTTP_REFERER;

    My question is if $ref contains URL1 or url of tellck.php
    And if yes, why?

    Advanced thanks for your time and attention
    Interval
     
    interval, May 10, 2007 IP
  5. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #5
    $ref == URL1
     
    gibex, May 10, 2007 IP