Form problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • D'son
    Major General

    • Apr 2008
    • 2577

    Form problem

    I created a form so that the ball teams could update thier records and pitch counts via eamil to me. Problem is that when they hit submit the thank you page is not loading. Here is the script I copied and pasted with my edits.
    <?PHP
    $mailto = "edavi179@mtco.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Update form results";
    $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);
    ?>

    Could someone tell me what up?
    Reguards
    Ed
    www.dsondesigns.com
    www.marseillesyouthsports.com
    www.300hitter.com
    www.bigjk.net
    How to add JAlbum to your site
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: Form problem

    Did you add that script to a page that you published as a .php file?

    Are you sure your form's action is this page?

    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

    • D'son
      Major General

      • Apr 2008
      • 2577

      #3
      Re: Form problem

      Yes I found what I did wrong, I watch the video several times more and realized that when I set the action to action.php it did not match my thank you page witch I named thank_you.php. Made the two match and holy cow it worked. But thanks for your help

      Ed Davidson
      Reguards
      Ed
      www.dsondesigns.com
      www.marseillesyouthsports.com
      www.300hitter.com
      www.bigjk.net
      How to add JAlbum to your site

      Comment

      Working...
      X