Results 1 to 9 of 9

Thread: help with form
      
   

  1. #1
    richard202 is offline Private First Class
    Join Date
    Nov 2007
    Posts
    5

    Default 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
    www.cruise-flights.com

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

    Default Re: help with form

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


    Andy
    PHP- is a blast!

  3. #3
    richard202 is offline Private First Class
    Join Date
    Nov 2007
    Posts
    5

    Default 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 specialists 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 specialists 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>

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

    Default 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!

  5. #5
    richard202 is offline Private First Class
    Join Date
    Nov 2007
    Posts
    5

    Default 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

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

    Default 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!

  7. #7
    richard202 is offline Private First Class
    Join Date
    Nov 2007
    Posts
    5

    Default Re: help with form

    Hello -- here is the url for the tutorial i followed:
    http://www.vodahost.com/vodatalk/for...-part-1-a.html

    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 specialists 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 specialists 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>

  8. #8
    richard202 is offline Private First Class
    Join Date
    Nov 2007
    Posts
    5

    Default 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!!!!!!!!!!!!!

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

    Default Re: help with form

    Great Richard! Glad all is well.

    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