Results 1 to 6 of 6

Thread: not receiving fields in form email
      
   

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

    Default not receiving fields in form email

    having the following issues:

    any help would be great!!

    1- not receiving form fields in email- just receiving:
    values submitted from website:

    2- sometimes it does not allow me to click in the form field to complete form

    Here is my php 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";
    echo $key." : ".$val."<br />";
    }
    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: not receiving fields in form email

    so the email isn't listing it in the following format

    field name : value entered

    ?

    also you can take out the

    echo $key." : ".$val."<br />";

    as well as

    </SCRIPT>

    as well as move the ?> before <META line


    As to why sometimes it doesnt let you click inside the fields sometimes, im guessing its a problem with your browser since its not all the time.

    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
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: not receiving fields in form email

    You can't always click in the fields because you have the title text covering part of your fields. If you click towards the right part, it is ok, if you click towards the left part (not in all of them) you cannot click.

    As for not receiving the values, i don't know what could be wrong. I suggest that you replace the script with this:

    <?PHP
    $email = $HTTP_POST_VARS[email];

    $mailto = "order@example.com";
    $mailsubj = "
    Enter Your Subject Here";
    $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);


    header("Location: contact-serenity-moving-thank-you.html");


    ?>

    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


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

    Default Re: not receiving fields in form email

    Thanks

    I fixed the text ..thanks naval!!

    also I changed the script however - this is the message I'm receiving:


    Warning: Cannot modify header information - headers already sent by (output started at /home/tkcztmqm/public_html/serenitymovingservices/free.php:2) in /home/tkcztmqm/public_html/serenitymovingservices/free.php on line 18
    www.nationwidemovingpros.com
    Nationwide Moving Pros- Your Answer For Moving Labor Help!

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

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: not receiving fields in form email

    If you wish, use my form to send me your login details, and i will fix it for you, if you haven't fixed that yet.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


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

    Default Re: not receiving fields in form email

    put ob_start(); at the top of the page, right after <?PHP

    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