web form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • castro
    Sergeant

    • Apr 2008
    • 35

    web form

    i built my form and make my thank you page but when i go to edit the two lines they're not there
    www.greenguana.com
  • saggi
    First Sergeant

    • Mar 2008
    • 73

    #2
    Re: web form

    Hi there

    You have to add the following script and then change blue lines according to your address and subject.
    Copy the following script and paste it in "Between Head Tag"

    <?PHP
    $mailto = "youremail@yourdomain.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Type your mail subject here";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

    change the part in blue of the above code with your actual email address, and the actual Email Subject.
    Thats it. I hope u will get it fixed
    Regards
    Attraction Passes
    Adventure Travel
    Europe Train Pass
    www.mirabeltravel.ca

    Comment

    Working...
    X