+ Reply to Thread
Results 1 to 2 of 2

Thread: Php Script
      
   

  1. #1
    CDBASE7211 is offline Staff Sergeant
    Join Date
    Mar 2006
    Posts
    46

    Default Php Script

    Hi

    Here are 2 scripts I am using on my forms..I am still getting blank emails

    Anyone Shed any light? I posted in forms but think it may have been the wrong place

    1st
    www.nationwidemovingpros.com/order.html

    <HTML>
    <HEAD>
    <TITLE>There is one more step until we process your order</TITLE>
    </HEAD>
    <BODY>
    <H2>You are now being redirected to payment processing!</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "order@nationwidemovingpros.com";
    $mailsubj = "From the OrderForm";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    </SCRIPT>
    <META HTTP-EQUIV="Refresh" Content="0; URL=thank_you.html">
    ?>
    </BODY>
    </HTML>

    2nd- www.nationwidemovingpros.com/contact.html
    <HTML>
    <HEAD>
    <TITLE>CONTACT CONFIRMED</TITLE>
    </HEAD>
    <BODY>
    <H2>ONE MOMENT PLEASE</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "info@nationwidemovingpros.com";
    $mailsubj = "From the Contact Form";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    </SCRIPT>
    <META HTTP-EQUIV="Refresh" Content="0; URL=contact_confirm.html">
    ?>
    </BODY>
    </HTML>

    any insight would be greatly appreciated!

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,050

    Default Re: Php Script

    Your answers are in the other thread you have also posted. Please do not make multiple posts on the same subject.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49