form email assistance

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

    • Jul 2007
    • 27

    form email assistance

    Hi all

    Have set some contact forms on my site when i enter data i get the thankyou message ok.

    Problem is the notification doesn't arrive to me.


    HELP!!!!!



    Thank you in advance


    Bernie
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: form email assistance

    Bernie-
    Could you also post the php code used to process the form.

    Andy
    PHP- is a blast!

    Comment

    • tidustom
      Sergeant

      • Jul 2007
      • 27

      #3
      Re: form email assistance

      Hi this is the code from my form:

      <form name="quote" method="POST" action="action.php" enctype="multipart/form-data" id="Form2">
      <input type="text" id="Editbox2" style="position:absolute;left:109px;top:12px;width :144px;font-family:Courier;font-size:19px;z-index:9" size="16" name="name1" value="">
      <div id="bv_Text4" style="position:absolute;left:49px;top:14px;width: 53px;height:16px;z-index:10" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">Name</font></div>
      <input type="text" id="Editbox1" style="position:absolute;left:107px;top:52px;width :144px;font-family:Courier;font-size:19px;z-index:11" size="16" name="Email" value="">
      <div id="bv_Text3" style="position:absolute;left:46px;top:55px;width: 48px;height:16px;z-index:12" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">E-Mail</font></div>
      <input type="text" id="Editbox4" style="position:absolute;left:108px;top:99px;width :144px;font-family:Courier;font-size:19px;z-index:13" size="16" name="telephone1" value="">
      <div id="bv_Text6" style="position:absolute;left:35px;top:100px;width :66px;height:16px;z-index:14" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">Telephone</font></div>
      <textarea name="comments" id="TextArea2" style="position:absolute;left:290px;top:31px;width :228px;height:107px;z-index:15" rows="5" cols="23"></textarea>
      <div id="bv_Text5" style="position:absolute;left:298px;top:8px;width: 74px;height:16px;z-index:16" align="left">
      <font style="font-size:13px" color="#000000" face="Arial">Comments</font></div>
      <input type="submit" id="Button2"" name="Button1" value="Submit" style="position:absolute;left:193px;top:145px;widt h:75px;height:24px;z-index:17">

      </form>



      And this is the code from my thankyou:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>action</title>
      <?PHP
      $mailto = "bwija@cytanet.com.cy";
      $email = $HTTP_POST_VARS['email'];
      if ($email == "") {
      $email = $mailto;
      }
      $mailsubj = "villa cleopatra info";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "name1,email,telephone1,comments :\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      if ($key!="submit")
      {
      $mailbody .= "$key : $val\n";
      }
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>


      Hope this helps get problem sorted


      Regards

      Bernie

      Comment

      • tidustom
        Sergeant

        • Jul 2007
        • 27

        #4
        Re: form email assistance

        Hi

        all ok now after reading another thread I changed my e-mail address and hey presto it works.

        Thanks all

        Bernie

        Comment

        Working...
        X