code

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

    • Aug 2008
    • 39

    code

    Hi everyone,

    hmm i have a coding problem in my register page for my site after my users type the required information i place this email to code:

    <?PHP
    $mailto = "myemail********.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "inquiry form submission";
    $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);
    ?>

    yes i know i have placed my email up top and i get the email from my site but it appear blank when i open it only thing i see is / Values submitted from web site form : then the rest is blank only other code i have in that page is

    <meta HTTP-EQUIV="REFRESH" content="5; url=http://www.mysite.com">

    please tell me what went wrong
    ty
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: code

    Make sure your forms "method" is set to post, also make sure all of your fields are within the form, if they are outside of the form the values won't submit when the form submits

    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

    Working...
    X