Results 1 to 4 of 4

Thread: Basic Form Problem
      
   

  1. #1
    Chrisgf is offline Private
    Join Date
    Jul 2007
    Posts
    2

    Post Basic Form Problem

    Hi

    I'm having some problems getting the basic form I have set up to send emails to me. I have followed the lesson and think I have done everything correctly, but still don't get an email back.

    I have read the other messages and it hasn't helped.

    This is the php part of the html in the action.php page

    <?PHP
    $mailto = "chrisgf@clear.net.nz";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "")
    {
    $email = $mailto;
    }
    $mailsubj = "Contact 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);
    ?>

    The link to the page to enter the contact details is

    http://www.maxltk.com/contact.html

    I have not bothered formation it to look good yet as I am trying to get the form to send the emails to me first.

    Please let me know if there is any other info you need.

    My account id is 15801.

    Thanks

    Chris

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Basic Form Problem

    Chris,
    The form is ok as is the code and the action.php page. I suspect that it may be a problem with the email provider itself.

    Could you try to set up a email account in the cpanel of your VH account and have the form send the contents there? In this we can see if indeed it is being blocked or other wise not sent/picked up by your email provider (clear.net.nz)


    Andy
    PHP- is a blast!

  3. #3
    Chrisgf is offline Private
    Join Date
    Jul 2007
    Posts
    2

    Smile Re: Basic Form Problem

    Thanks Andy,

    I set up a test mail account and changes the php with the new email address and tested it. It worked great.

    Many thanks for the help. It looked like my other email account was getting blocked.

    Regards

    Chriss

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Basic Form Problem

    Any time.

    Andy
    PHP- is a blast!

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