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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • CDBASE7211
    Staff Sergeant

    • Mar 2006
    • 46

    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!
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    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

    Comment

    • CDBASE7211
      Staff Sergeant

      • Mar 2006
      • 46

      #3
      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!

      Comment

      Working...
      X