+ Reply to Thread
Results 1 to 3 of 3

Thread: HTML code for Contact Form
      
   

  1. #1
    Patti Johnson's Avatar
    Patti Johnson is offline Sergeant Major
    Join Date
    Jul 2005
    Posts
    95

    Question HTML code for Contact Form

    If one of you great html people out there can help me with this, I'll be very happy. Here's my form www.winetastingatyourhome.com/contact.html and the following is the code on my contact.php file on the server. Obviously the code does not include all aspects of the form, so when I receive an email, it does not include all the fields that are on the form itself. Can someone help me with changing this code so that the form will relay all info correctly? The submit button works fine.

    <HTML>
    <HEAD>
    <TITLE>Thank you.</TITLE>
    </HEAD>
    <BODY>
    <H2>Thank you. We will contact you shortly.</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "contact@winetastingatyourhome.com";
    $mailsubj = "contact 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))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    </BODY>
    </HEAD>

  2. #2
    Join Date
    Aug 2005
    Location
    Castle Rock, CO
    Posts
    16

    Default

    Did you name all the fields on the form?


    I know whan I don't name the fields it only returns the first data value entered because the rest of the fields have the same name.

  3. #3
    Patti Johnson's Avatar
    Patti Johnson is offline Sergeant Major
    Join Date
    Jul 2005
    Posts
    95

    Default

    Yes, I think I got it... thanks.



    Quote Originally Posted by fun-colorado-family-hikes
    Did you name all the fields on the form?


    I know whan I don't name the fields it only returns the first data value entered because the rest of the fields have the same name.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. HTML code
    By topcatgym in forum General Support Issues
    Replies: 6
    Last Post: 11-22-2005, 12:46 AM
  2. Copy HTML into the code
    By Quint in forum VodaHits SEO Services
    Replies: 6
    Last Post: 09-16-2005, 12:23 PM
  3. HTML Problem
    By racefan20 in forum BlueVoda - General Issues
    Replies: 2
    Last Post: 08-03-2005, 06:43 PM
  4. BlueVoda 7.0
    By VodaHost in forum CSS Cascading Style Sheets
    Replies: 27
    Last Post: 07-31-2005, 06:52 AM
  5. Insert php code in webpage (html)
    By ali in forum BlueVoda - General Issues
    Replies: 8
    Last Post: 07-30-2005, 04:59 AM

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