help with form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • richard202
    Private First Class

    • Nov 2007
    • 5

    help with form

    I am having difficulty with my form submission - the form doesnt submit and i dont proceed to my thank you page -- i have the action.php set correctly, but i think i have messed up the html on the thank you page -- any assistance offered would be greatly appreciated
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: help with form

    Please post your php code here so that we can have a look at it.


    Andy
    PHP- is a blast!

    Comment

    • richard202
      Private First Class

      • Nov 2007
      • 5

      #3
      Re: help with form

      I'm afraid I have fowled this up pretty bad -but don't know how to fix it -- your help is very much appreciated

      <!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>Thank you</title>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>Thank you</title>
      <?PHP
      $email = $HTTP_POST_VARS[email];
      $emailto = "contact@cruise-flights.com";
      $mailsubj = "contact Form Submission";
      $mailhead = "from: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values Submitted ffrom Web site fot :\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      if ($key!::submit:)
      {
      $mailbody .= "$key : $val/n";
      }
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>

      <meta name="GENERATOR" content="Created by BlueVoda">
      </head>
      <body bgcolor="#FFFFFF" text="#000000">
      <img src="m_013.gif" id="Image1" alt="" align="top" border="0" width="996" height="1278" style="position:absolute;left:0px;top:0px;width:99 6px;height:1278px;z-index:0">
      <div id="bv_" style="position:absolute;left:312px;top:72px;width :548px;height:58px;z-index:1" align="left">
      <font style="font-size:48px" color="#000000" face="Book Antiqua">CRUISE - FLIGHTS&nbsp; LTD</font></div>
      <div id="bv_" style="position:absolute;left:336px;top:432px;widt h:629px;height:195px;z-index:2" align="center">
      <font style="font-size:32px" color="#000000" face="Times New Roman">Thank you for your flight request<br>
      <br>
      Our professional Air/Sea spe******ts will reply via your email with an itinerary for your approval within 24 hours</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
      </font></div>
      <div id="bv_" style="position:absolute;left:72px;top:456px;width :124px;height:132px;z-index:3" align="center">
      <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
      <tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights/index.html"><img id="bv01005" src="bv01005.gif" alt="home" title="home" align="top" border="0" width="124" height="30"></a></td>
      </tr>
      <tr><td height="4"></td></tr><tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.resform.html"><img id="bv01006" src="bv01006.gif" alt="Reservation " title="Reservation " align="top" border="0" width="124" height="30"></a></td>
      </tr>
      <tr><td height="4"></td></tr><tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.contact.html"><img id="bv01007" src="bv01007.gif" alt="Contact Us" title="Contact Us" align="top" border="0" width="124" height="30"></a></td>
      </tr>
      <tr><td height="4"></td></tr><tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.cruisenews.html"><img id="bv01008" src="bv01008.gif" alt="Cruise News" title="Cruise News" align="top" border="0" width="124" height="30"></a></td>
      </tr>
      </table>
      </div>
      <div id="bv_" style="position:absolute;left:336px;top:144px;widt h:648px;height:42px;z-index:4" align="left">
      <font style="font-size:24px" color="#000000" face="Times New Roman">Professional Air/Sea Services for Cruise Passengers</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
      </font></div>
      </body>
      </html>
      <meta name="GENERATOR" content="Created by BlueVoda">
      </head>
      <body bgcolor="#FFFFFF" text="#000000">
      <img src="m_013.gif" id="Image1" alt="" align="top" border="0" width="996" height="1278" style="position:absolute;left:0px;top:0px;width:99 6px;height:1278px;z-index:0">
      <div id="bv_" style="position:absolute;left:312px;top:72px;width :548px;height:58px;z-index:1" align="left">
      <font style="font-size:48px" color="#000000" face="Book Antiqua">CRUISE - FLIGHTS&nbsp; LTD</font></div>
      <div id="bv_" style="position:absolute;left:336px;top:432px;widt h:629px;height:195px;z-index:2" align="center">
      <font style="font-size:32px" color="#000000" face="Times New Roman">Thank you for your flight request<br>
      <br>
      Our professional Air/Sea spe******ts will reply via your email with an itinerary for your approval within 24 hours</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
      </font></div>
      <div id="bv_" style="position:absolute;left:72px;top:456px;width :124px;height:98px;z-index:3" align="center">
      <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
      <tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/index.html" target="_self"><img id="bv01005" src="bv01005.gif" alt="home" title="home" align="top" border="0" width="124" height="30"></a></td>
      </tr>
      <tr><td height="4"></td></tr><tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/resform.html" target="_self"><img id="bv01006" src="bv01006.gif" alt="Reservation " title="Reservation " align="top" border="0" width="124" height="30"></a></td>
      </tr>
      <tr><td height="4"></td></tr><tr>
      <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/cruise news.html" target="_self"><img id="bv01008" src="bv01008.gif" alt="Cruise News" title="Cruise News" align="top" border="0" width="124" height="30"></a></td>
      </tr>
      </table>
      </div>
      <div id="bv_" style="position:absolute;left:336px;top:144px;widt h:648px;height:42px;z-index:4" align="left">
      <font style="font-size:24px" color="#000000" face="Times New Roman">Professional Air/Sea Services for Cruise Passengers</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
      </font></div>
      </body>
      </html>

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #4
        Re: help with form

        The php code that you copied and are using has an error in it. Before I correct it, can you give me a URL to the palce where you copied the php code from? This way I can see what exactly was intended and what is missing.

        Andy
        PHP- is a blast!

        Comment

        • richard202
          Private First Class

          • Nov 2007
          • 5

          #5
          Re: help with form

          perhaps that is what I am confused about. When I opend the page html properties on my thank you page www.cruise-flight.com/thankyou.html i copied the HTML from the top to the bottom panel in the "between Head tag" tab and added the "$mail" info as instructed in the form tutorial video - but i do not think i did it correctly -- many thanks

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            Re: help with form

            There is no need to copy what was above into the blank space below. So delete everything and start over.

            But I would still like to have the URL to the tutorial that gave you the php code to copy and paste.

            Andy
            PHP- is a blast!

            Comment

            • richard202
              Private First Class

              • Nov 2007
              • 5

              #7
              Re: help with form

              Hello -- here is the url for the tutorial i followed:


              Aso below is the HTML that i have revised -- but the page still does not submit -- responds with

              Parse error: syntax error, unexpected '!' in /home/bnocmzmq/public_html/action.php on line 20

              <!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>Thank you</title>
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
              <title>Thank you</title>
              <meta name="GENERATOR" content="Created by BlueVoda">
              </head>
              <body bgcolor="#FFFFFF" text="#000000">
              <img src="m_013.gif" id="Image1" alt="" align="top" border="0" width="996" height="1278" style="position:absolute;left:0px;top:0px;width:99 6px;height:1278px;z-index:0">
              <div id="bv_" style="position:absolute;left:312px;top:72px;width :548px;height:58px;z-index:1" align="left">
              <font style="font-size:48px" color="#000000" face="Book Antiqua">CRUISE - FLIGHTS&nbsp; LTD</font></div>
              <div id="bv_" style="position:absolute;left:336px;top:432px;widt h:629px;height:195px;z-index:2" align="center">
              <font style="font-size:32px" color="#000000" face="Times New Roman">Thank you for your flight request<br>
              <br>
              Our professional Air/Sea spe******ts will reply via your email with an itinerary for your approval within 24 hours</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
              </font></div>
              <div id="bv_" style="position:absolute;left:72px;top:456px;width :124px;height:132px;z-index:3" align="center">
              <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
              <tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights/index.html"><img id="bv01005" src="bv01005.gif" alt="home" title="home" align="top" border="0" width="124" height="30"></a></td>
              </tr>
              <tr><td height="4"></td></tr><tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.resform.html"><img id="bv01006" src="bv01006.gif" alt="Reservation " title="Reservation " align="top" border="0" width="124" height="30"></a></td>
              </tr>
              <tr><td height="4"></td></tr><tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.contact.html"><img id="bv01007" src="bv01007.gif" alt="Contact Us" title="Contact Us" align="top" border="0" width="124" height="30"></a></td>
              </tr>
              <tr><td height="4"></td></tr><tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.cruisenews.html"><img id="bv01008" src="bv01008.gif" alt="Cruise News" title="Cruise News" align="top" border="0" width="124" height="30"></a></td>
              </tr>
              </table>
              </div>
              <div id="bv_" style="position:absolute;left:336px;top:144px;widt h:648px;height:42px;z-index:4" align="left">
              <font style="font-size:24px" color="#000000" face="Times New Roman">Professional Air/Sea Services for Cruise Passengers</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
              </font></div>
              <?PHP
              $mailto = "contact@cruise-flights.com";
              $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);
              ?>
              </body>
              </html>
              <meta name="GENERATOR" content="Created by BlueVoda">
              </head>
              <body bgcolor="#FFFFFF" text="#000000">
              <img src="m_013.gif" id="Image1" alt="" align="top" border="0" width="996" height="1278" style="position:absolute;left:0px;top:0px;width:99 6px;height:1278px;z-index:0">
              <div id="bv_" style="position:absolute;left:312px;top:72px;width :548px;height:58px;z-index:1" align="left">
              <font style="font-size:48px" color="#000000" face="Book Antiqua">CRUISE - FLIGHTS&nbsp; LTD</font></div>
              <div id="bv_" style="position:absolute;left:336px;top:432px;widt h:629px;height:195px;z-index:2" align="center">
              <font style="font-size:32px" color="#000000" face="Times New Roman">Thank you for your flight request<br>
              <br>
              Our professional Air/Sea spe******ts will reply via your email with an itinerary for your approval within 24 hours</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
              </font></div>
              <div id="bv_" style="position:absolute;left:72px;top:456px;width :124px;height:98px;z-index:3" align="center">
              <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
              <tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/index.html" target="_self"><img id="bv01005" src="bv01005.gif" alt="home" title="home" align="top" border="0" width="124" height="30"></a></td>
              </tr>
              <tr><td height="4"></td></tr><tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/resform.html" target="_self"><img id="bv01006" src="bv01006.gif" alt="Reservation " title="Reservation " align="top" border="0" width="124" height="30"></a></td>
              </tr>
              <tr><td height="4"></td></tr><tr>
              <td align="left" valign="top" width="124" height="30"><a href="http://www.cruise-flights.com/cruise news.html" target="_self"><img id="bv01008" src="bv01008.gif" alt="Cruise News" title="Cruise News" align="top" border="0" width="124" height="30"></a></td>
              </tr>
              </table>
              </div>
              <div id="bv_" style="position:absolute;left:336px;top:144px;widt h:648px;height:42px;z-index:4" align="left">
              <font style="font-size:24px" color="#000000" face="Times New Roman">Professional Air/Sea Services for Cruise Passengers</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
              </font></div>
              </body>
              </html>

              Comment

              • richard202
                Private First Class

                • Nov 2007
                • 5

                #8
                Re: help with form

                thank you for your help -- i cleared the html and started over -- works like a charm now -- many thanks for your assistance!!!!!!!!!!!!!

                Comment

                • Andy128
                  Major General

                  • Dec 2005
                  • 2317

                  #9
                  Re: help with form

                  Great Richard! Glad all is well.

                  Andy
                  PHP- is a blast!

                  Comment

                  Working...
                  X