Announcement

Collapse
No announcement yet.

An email form problem

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

  • An email form problem

    I seem to being missing something. When I hit submit nothing happens.
    page is named /contact.html
    I fixed the form to be
    Action: contact.php
    Method: Post
    Removed text/plain so field empty
    Created a contact.php in notebook and uploaded
    Here's the code on the contact.php


    <HEAD>
    <TITLE>Thank you</TITLE>
    </HEAD>
    <BODY>
    <H2>Than you!!</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "writer@christianwomensurvey.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>

    Where have I gone wrong? Thank you

  • #2
    Can you post the link to your site so we can see where you're going wrong.
    Ruth

    http://www.okose.com
    Professional Web design/development and Graphic Design

    Comment


    • #3
      Ruthie,
      Thanks for getting back to me. This problem was puzzling me for a couple of days. Somehow it started working about 10 minutes ago. I don't know why...I think part of the problem was thatI couldn't get the fifth page (contact) page to launch which after two days I was able to launch and the fifth nav button on the index page is now able to work. Now that it is published, the submit button seems to be working too. I'm sure there's a good algorythmic reason, but it must be those good vibes from Blue Voda geniuses. My web site is finished! Yea!

      Comment


      • #4
        Glad to hear it.

        Well done.
        Ruth

        http://www.okose.com
        Professional Web design/development and Graphic Design

        Comment

        Working...
        X