Results 1 to 2 of 2

Thread: code
      
   

  1. #1
    hidden is offline Sergeant
    Join Date
    Aug 2008
    Posts
    39

    Default 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

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

    Default 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

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