Results 1 to 3 of 3

Thread: Please Check My Php..not Getting Fields In The Form
      
   

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

    Default Please Check My Php..not Getting Fields In The Form

    Hi

    not receiving fields or info

    I'm using php script

    www.serenitymovingservices.com
    free quote form

    thanks!

    Here is the script
    <HTML>
    <HEAD>
    <TITLE>Serenity Moving Services</TITLE>
    </HEAD>
    <BODY>
    <H2>We Look Forward To Servicing You!</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "order@serenitymovingservices.com";
    $mailsubj = "Free Quote Request";
    $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-serenity-moving-thank-you.html">
    ?>
    </BODY>
    </HTML>
    www.nationwidemovingpros.com
    Nationwide Moving Pros- Your Answer For Moving Labor Help!

    www.mymovingconnection.com
    Where Service Providers & Customers Meet!

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Please Check My Php..not Getting Fields In The Form

    Change

    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }

    to

    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    echo $key." : ".$val."<br />";
    }

    and see if it is outputting the information

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

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

    Default Re: Please Check My Php..not Getting Fields In The Form

    thanks

    i forgot ot make it a multi page form etc


    thanks anyway!!!
    www.nationwidemovingpros.com
    Nationwide Moving Pros- Your Answer For Moving Labor Help!

    www.mymovingconnection.com
    Where Service Providers & Customers Meet!

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