![]() |
|
| |||||||
| Notices |
| Forms Discussion and help related to designing and implementing forms in the BlueVoda Website Builder. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
|
how are you man ! really i have problem bother me a lot , i couldn't fix it , i hope you help me out please . problem is : thank you page , i don't find php code in my thank you page , i will give you the code to find out, and the clinent reservation page does't go through to my email please,please,please,please help me. the code is <!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.php</title> <meta name="KEYWORDS" content="Reservation"> <meta name="GENERATOR" content="Created by BlueVoda"> <script type="text/javascript"> <!-- function SwapImage() { var doc=document, args=arguments; doc.$imgSwaps = new Array(); for(var i=2; i<args.length; i+=2) { var elem=FindObject(args[i]); if(elem) { doc.$imgSwaps[doc.$imgSwaps.length]=elem; elem.$src=elem.src; elem.src=args[i+1]; } } } // --> </script> <script type="text/javascript"> <!-- function FindObject(id, doc) { var child, elem; if(!doc) doc=document; if(doc.getElementById) elem=doc.getElementById(id); else if(doc.layers) child=doc.layers; else if(doc.all) elem=doc.all[id]; if(elem) return elem; if(doc.id==id || doc.name==id) return doc; if(doc.childNodes) child=doc.childNodes; if(child) { for(var i=0; i<child.length; i++) { elem=FindObject(id,child[i]); if(elem) return elem; } } var frm=doc.forms; if(frm) { for(var i=0; i<frm.length; i++) { var elems=frm[i].elements; for(var j=0; j<elems.length; j++) { elem=FindObject(id,elems[i]); if(elem) return elem; } } } return null; } // --> </script> <style type="text/css"> a.style1:link {color: #0000FF;} a.style1:visited {color: #800080;text-decoration: underline;} a.style1:active {color: #0000FF;font-weight: bold;text-decoration: underline;} a.style1:hover {color: #0000FF;text-decoration: underline;} </style> <style type="text/css"> img { behavior: url("pngfix.***"); } </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <div id="bv_" style="position:absolute;left:195px;top:409px;widt h:391px;height:64px;z-index:0" align="left"> <font style="font-size:27px" color="#0000FF" face="Arial"><b>Thank you for Reservation we will back to you shortly</b></font></div> <img src="bv01401.png" align="top" alt="" border="0" width="801" height="67" style="position:absolute;left:0px;top:0px;width:80 1px;height:67px;z-index:1"> <a href="<A href="http://www.ccs-boston.com/service"><img">http://www.ccs-boston.com/service"><img src="bv01065.png" id="Image1" alt="" align="top" border="0" width="800" height="135" style="position:absolute;left:0px;top:64px;width:8 00px;height:135px;z-index:2"></a> <a href="<A href="http://www.ccs-boston.com/index.html"><img">http://www.ccs-boston.com/index.html"><img src="CCS-BOSTON LOGO.bmp" id="Image2" alt="" align="top" border="0" width="798" height="150" style="position:absolute;left:0px;top:198px;width: 798px;height:150px;z-index:3"></a> <div id="bv_" style="position:absolute;left:0px;top:346px;width: 804px;height:22px;z-index:4" align="center"> <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1"> <tr> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/Home.html"><img">http://www.ccs-boston.com/Home.html"><img id="bv01402" src="bv01402.gif" alt="http://www.ccs-boston.com/Home.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01402','bv01402_over .gif')" onmouseout="SwapImage(0,0,'bv01402','bv01402.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/Service.html"><img">http://www.ccs-boston.com/Service.html"><img id="bv01403" src="bv01403.gif" alt="http://www.ccs-boston.com/Service.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01403','bv01403_over .gif')" onmouseout="SwapImage(0,0,'bv01403','bv01403.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/Rate.html"><img">http://www.ccs-boston.com/Rate.html"><img id="bv01404" src="bv01404.gif" alt="http://www.ccs-boston.com/Rate.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01404','bv01404_over .gif')" onmouseout="SwapImage(0,0,'bv01404','bv01404.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/Reservation.html"><img">http://www.ccs-boston.com/Reservation.html"><img id="bv01405" src="bv01405.gif" alt="http://www.ccs-boston.com/Reservation.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01405','bv01405_over .gif')" onmouseout="SwapImage(0,0,'bv01405','bv01405.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/contact_us.html"><img">http://www.ccs-boston.com/contact_us.html"><img id="bv01406" src="bv01406.gif" alt="http://www.ccs-boston.com/contact_us.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01406','bv01406_over .gif')" onmouseout="SwapImage(0,0,'bv01406','bv01406.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="<A href="http://www.ccs-boston.com/Feedback.html"><img">http://www.ccs-boston.com/Feedback.html"><img id="bv01407" src="bv01407.gif" alt="http://www.ccs-boston.com/Feedback.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01407','bv01407_over .gif')" onmouseout="SwapImage(0,0,'bv01407','bv01407.gif') "></a></td> </tr> </table> </div> <div id="bv_" style="position:absolute;left:0px;top:572px;width: 966px;height:47px;z-index:5" align="left"> <font style="font-size:13px" color="#000000" face="Arial"><b>All content and page Copyright @ 2003 by casabellacarservice,inc - Tel:(617) 401-5521 or (617) 307-8247- <br> <br> </b> </font></div> <div id="bv_" style="position:absolute;left:657px;top:568px;widt h:153px;height:38px;z-index:6" align="center"> <font style="font-size:16px;" color="#000000" face="Arial"> <a href="mailto:info@ccs-boston.com" target="_blank">info@ccs-boston.com</a></font></div> <img src="band.bmp" id="Image3" alt="" align="top" border="0" width="800" height="2" style="position:absolute;left:0px;top:563px;width: 800px;height:2px;z-index:7"> </body> </html> |
|
#2
| ||||
| ||||
|
Hi, I am very new at forms, but it is my understanding that a "Thank You" page is HTML only. PHP is in submission form. Don't get stressed, someone wiser will be along eventually, it will all be good! |
|
#3
| |||
| |||
|
Hi, Here is the code I used for my Thankyou page. It worked for me: <?PHP $mailto = "email@yoursite.com"; $email = $HTTP_POST_VARS['email']; if ($email == "") { $email = $mailto; } $mailsubj = "Reservation request"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from our Reservation Form:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { if ($key!="submit") { $mailbody .= "$key : $val\n"; } } mail($mailto, $mailsubj, $mailbody, $mailhead); ?> Change the parts in Blue to suit your needs. |
|
#4
| ||||
| ||||
|
Casablanca- Ok- lets try to explain this a little. A form needs instruction on how and what to do with the information that is entered into it. That instruction is held in the "action" of the form. In this case, the action is action.php So when the user hits submit, the form is directed to the action.php page which does two things. First- it has a hidden php script in it that takes all the data from the form and processes it and sends it to your e-mail address. Secondly, it thanks the visitor for comming to the site and filling out the form. That is why it is called the thank you page - but in reality it is NAMED action.php. So when we are making a page to say thank you - we name that page action.php and place the php script (that lemmondr has shown) in that page. I know it gets confusing - but that is the simple layout of the way it works. So, go back and make sure you named the page -action.php and it has the php script in it and has a thank you message. Andy
__________________ My diamond in the rough - www.123gpp.com * Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!) |
|
#5
| |||
| |||
|
thank you for show me this information. i did rename page to action.php but still i can find php in the html page , this the code. if you help me more please. <!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.php</title> <meta name="KEYWORDS" content="Reservation"> <meta name="GENERATOR" content="Created by BlueVoda"> <script type="text/javascript"> <!-- function SwapImage() { var doc=document, args=arguments; doc.$imgSwaps = new Array(); for(var i=2; i<args.length; i+=2) { var elem=FindObject(args[i]); if(elem) { doc.$imgSwaps[doc.$imgSwaps.length]=elem; elem.$src=elem.src; elem.src=args[i+1]; } } } // --> </script> <script type="text/javascript"> <!-- function FindObject(id, doc) { var child, elem; if(!doc) doc=document; if(doc.getElementById) elem=doc.getElementById(id); else if(doc.layers) child=doc.layers; else if(doc.all) elem=doc.all[id]; if(elem) return elem; if(doc.id==id || doc.name==id) return doc; if(doc.childNodes) child=doc.childNodes; if(child) { for(var i=0; i<child.length; i++) { elem=FindObject(id,child[i]); if(elem) return elem; } } var frm=doc.forms; if(frm) { for(var i=0; i<frm.length; i++) { var elems=frm[i].elements; for(var j=0; j<elems.length; j++) { elem=FindObject(id,elems[i]); if(elem) return elem; } } } return null; } // --> </script> <style type="text/css"> a.style1:link {color: #0000FF;} a.style1:visited {color: #800080;text-decoration: underline;} a.style1:active {color: #0000FF;font-weight: bold;text-decoration: underline;} a.style1:hover {color: #0000FF;text-decoration: underline;} </style> <style type="text/css"> img { behavior: url("pngfix.***"); } </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <div id="bv_" style="position:absolute;left:184px;top:450px;widt h:391px;height:64px;z-index:0" align="left"> <font style="font-size:27px" color="#0000FF" face="Arial"><b>Thank you for Reservation we will back to you shortly</b></font></div> <img src="bv01408.png" align="top" alt="" border="0" width="801" height="67" style="position:absolute;left:0px;top:0px;width:80 1px;height:67px;z-index:1"> <a href="http://www.ccs-boston.com/service"><img src="bv01065.png" id="Image1" alt="" align="top" border="0" width="800" height="135" style="position:absolute;left:0px;top:64px;width:8 00px;height:135px;z-index:2"></a> <a href="http://www.ccs-boston.com/index.html"><img src="CCS-BOSTON LOGO.bmp" id="Image2" alt="" align="top" border="0" width="798" height="150" style="position:absolute;left:0px;top:198px;width: 798px;height:150px;z-index:3"></a> <div id="bv_" style="position:absolute;left:0px;top:346px;width: 804px;height:22px;z-index:4" align="center"> <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1"> <tr> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/Home.html"><img id="bv01409" src="bv01409.gif" alt="http://www.ccs-boston.com/Home.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01409','bv01409_over .gif')" onmouseout="SwapImage(0,0,'bv01409','bv01409.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/Service.html"><img id="bv01410" src="bv01410.gif" alt="http://www.ccs-boston.com/Service.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01410','bv01410_over .gif')" onmouseout="SwapImage(0,0,'bv01410','bv01410.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/Rate.html"><img id="bv01411" src="bv01411.gif" alt="http://www.ccs-boston.com/Rate.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01411','bv01411_over .gif')" onmouseout="SwapImage(0,0,'bv01411','bv01411.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/Reservation.html"><img id="bv01412" src="bv01412.gif" alt="http://www.ccs-boston.com/Reservation.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01412','bv01412_over .gif')" onmouseout="SwapImage(0,0,'bv01412','bv01412.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/contact_us.html"><img id="bv01413" src="bv01413.gif" alt="http://www.ccs-boston.com/contact_us.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01413','bv01413_over .gif')" onmouseout="SwapImage(0,0,'bv01413','bv01413.gif') "></a></td> <td align="left" valign="top" width="134" height="22"><a href="http://www.ccs-boston.com/Feedback.html"><img id="bv01414" src="bv01414.gif" alt="http://www.ccs-boston.com/Feedback.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01414','bv01414_over .gif')" onmouseout="SwapImage(0,0,'bv01414','bv01414.gif') "></a></td> </tr> </table> </div> <div id="bv_" style="position:absolute;left:0px;top:681px;width: 966px;height:47px;z-index:5" align="left"> <font style="font-size:13px" color="#000000" face="Arial"><b>All content and page Copyright @ 2003 by casabellacarservice,inc - Tel:(617) 401-5521 or (617) 307-8247- <br> <br> </b> </font></div> <div id="bv_" style="position:absolute;left:661px;top:682px;widt h:153px;height:38px;z-index:6" align="center"> <font style="font-size:16px;" color="#000000" face="Arial"> <a href="mailto:info@ccs-boston.com" target="_blank">info@ccs-boston.com</a></font></div> <img src="band.bmp" id="Image3" alt="" align="top" border="0" width="800" height="2" style="position:absolute;left:0px;top:675px;width: 800px;height:2px;z-index:7"> </body> </html> big thanks too you |