![]() |
|
| |||||||
| Notices |
| Email Problems (POP, SMTP & Webmail) Covers problems with receiving and sending Email, configuring your email services (ie. Outlook, Eudora, Pegasus) and using webmail. |
![]() |
| | Thread Tools |
|
#1
| |||
| |||
|
Hi, I've read thru these posts and watched the tutorial several times but just can't seem to get this right. I have created the contact form on my contact us page (have not published the form yet). When I go to make a thank you page and click on Page HTML for the php code...I can't find the (mail to) part of the code they are talking about to copy and paste. I hope this makes sense to somebody. Please help. Thanks in advance. Hybridizer http://www.hybridizer.net |
|
#2
| |||
| |||
|
This is the coding you need to place on your page: Replace the BLACK text with your own <?PHP $mailto = "your email"; $email = $HTTP_POST_VARS['email']; if ($email == "") { $email = $mailto; } $mailsubj = "Form Application"; $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); ?> ===================== Hope this helps |
|
#3
| |||
| |||
| Thank you so much for replying. I think I am maybe just being a bit dense here. My contaact form is going to be on my contact us page. I have made the thank you page as a separate page and it is named thank you page. I get the following code from the (not yet published) thank you page. So I have a couple of (probably) stupid questions: 1. Am I getting my code from the right place? 2. Can I just copy and paste the code you wrote and if I can where? Thanks again so much for your help :) <!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> <meta name="GENERATOR" content="Created by BlueVoda"> <style type="text/css"> div#container { width: 800px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } </style> <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> </head> <body background="newbacg.jpg" bgcolor="#FFFFFF" text="#000000"> <div id="container"> <div id="bv_" style="position:absolute;left:143px;top:174px;widt h:599px;height:72px;z-index:0" align="center"> <font style="font-size:21px" color="#000000" face="Arial">Thank You for your Email!<br> <br> We will get back to you shortly.</font></div> <div id="bv_" style="position:absolute;left:386px;top:284px;widt h:110px;height:156px;z-index:1" align="center"> <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1"> <tr> <td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/index.html"><img id="bv01028" src="bv01028.gif" alt="http://www.hybridizer.net/index.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01028','bv01028_over .gif')" onmouseout="SwapImage(0,0,'bv01028','bv01028.gif') "></a></td> </tr> <tr><td height="4"></td></tr><tr> <td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/gallery.html"><img id="bv01029" src="bv01029.gif" alt="http://www.hybridizer.net/gallery.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01029','bv01029_over .gif')" onmouseout="SwapImage(0,0,'bv01029','bv01029.gif') "></a></td> </tr> <tr><td height="4"></td></tr><tr> <td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/resources.html"><img id="bv01030" src="bv01030.gif" alt="http://www.hybridizer.net/resources.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01030','bv01030_over .gif')" onmouseout="SwapImage(0,0,'bv01030','bv01030.gif') "></a></td> </tr> <tr><td height="4"></td></tr><tr> <td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/contactus.html"><img id="bv01031" src="bv01031.gif" alt="http://www.hybridizer.net/contactus.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01031','bv01031_over .gif')" onmouseout="SwapImage(0,0,'bv01031','bv01031.gif') "></a></td> </tr> </table> </div> </div> </body> </html> |
|
#4
| |||
| |||
|
Your "Contact Page" is the page that will contain your form for people to fill in and submit. Your "thankyou" page will contain the code that I have given you in my post above. This can be placed anywhere on your "thankyou" page YOU MUST then save your "thankyou" page as "action.php" (not "thankyou") for the coding to work and for your form to work. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |