+ Reply to Thread
Results 1 to 4 of 4

Thread: Some values not comming up. plz help
      
   

  1. #1
    Lflagg is offline Sergeant First Class
    Join Date
    Aug 2007
    Posts
    54

    Exclamation Some values not comming up. plz help

    hello,
    I'm testing my action pages and i realized that some values are coming blank. for example, phone number,r second phone and email.

    this is the form's page:
    http://www.seniorhelpersflorida.com/contact_us.html

    and this the PHP code:

    <?PHP
    $mailto = "seniorhelpers******.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Client Submission Form";
    $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);
    ?>

    what is missing? thanks!

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

    Default Re: Some values not comming up. plz help

    Check your form. The script has nothing to do with this
    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!


  3. #3
    Lflagg is offline Sergeant First Class
    Join Date
    Aug 2007
    Posts
    54

    Default Re: Some values not comming up. plz help

    yes, i checked it, but this is the code i have in the action page that is related to the link i posted... i did a test and i get the action page as needed, but some fields are blank. that is why i pasted the code, because something there is missing and i dont know what it is...
    thanks!

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

    Default Re: Some values not comming up. plz help

    Your problem is that some fields have the same name: name and last name in example, are both "name".

    Phone number and second number: all six fields are "phone".

    Gender field is named relationship, as the real relationship field, etc.

    EACH field MUST have it's own name, otherwise you will only receive one value for all the fields named the same way.
    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!


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