My son is wanting to put a contact form on his website where he can put in his own questions for people to fill out and have the form emailed back to his email addy. I have tried a few of the free contact form gens. without much luck. They seem easy enough but when we set it up on his site we have had 2 different problems. <br /> <br /> 1. first gen we used the form would not send the form to his email box<br /> 2. Second one we tried we input all the fields he wanted on his form but when the email was sent, it still had the default fields instead of the ones he created. Is there anyone that can or would make a contact form for him?<br /><br /><br />Thanks<!--content-->
What form to email script are you using?<!--content-->
Have you tried <a href="http://regretless.com/scripts/scripts.php#dodosmail" target="_blank">Dodosmail</a>?<br />it comes with a sample test form, just edit the 2nd line of dodosmail.php to change to your e-mail adddress, and your are set, then modify the test form the way you want.<!--content-->
Forms have 3 main parts.<br />1) processing code-start the form (says who/where the form is processed)<br />2) fields for input (some may be required, etc)<br />3) submit button-end of form (can have other name on it - yours says send details)<br /><br />For this discussion, let's come back to #1 later. <br /><br /><b>#2 contains fairly generic pieces of code </b>that can be used by just about any form processor. The fields I have defined below are name, address, comment and heardabout. You can put them in tables, or directly on the page, etc to fit your design need.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Do not put <FORM></FORM> in front/behind each field as you have done with your current form. é•硂u start the form with code in #1 and it is ended with code in #3.<br /><br />Simple text entry:<br /> ?#60;input type="Text" name="name" size="60" maxlength="60"><br /><br />This one allows more input by the user than the field size visible: <br /> ?#60;input type="Text" name="address" size="60" maxlength="200"><br /><br />Simple comment/message entry: ?br /> ?#60;textarea name="comment" cols="52" rows="10" wrap="VIRTUAL"><br /><br />Simple dropdown choice:<br /> ?#60;SELECT NAME="Heard" SIZE=1><br /> ???<option value=heardabout selected>PLEASE CHOOSE ONE<br /> ???<option value=Google>Google<br /> ???<option value=Othersearch>Other Search Engine<br /> ???<option value=TCHforum>TCH Forum<br /> ???<option value=Other>Some other way<br /> ?#60;/SELECT><!--c2--></div><!--ec2--><br /><br /><b>#3 can be as simple as: </b><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><INPUT TYPE="button" name="printMe" onClick="print()" value="Print Page"><br /><INPUT TYPE="submit" value="Send" name="tlx_send"> ?<br /><INPUT TYPE="reset"><br /></form><!--c2--></div><!--ec2--><br /><br /><b>#1 is the tricky part. </b> You must have a way to send/push your form contents from your site to email receipient. You can do this in several ways.<br /><br /><b>A. Use a 3rd party site to forward your form content. </b>In this case you would not have to have a script on your site that you maintain or install to process the form. You sign up with a form processor, define the fields you want (name , address, etc) and they provide the processing code. Place it at the top of your form, before any fields you want. Remember the fields you defined at the processor must match the fields you build on your web page or you will get crud for an email!<br /><br />One such processor is <!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.cutandpastescripts.com <!--colorc--></span><!--/colorc--> The code below was generated by CutandPaste (posted here as example but tweaked so it is not be valid!)<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!- Form Processing, by Cut and Paste Scripts. é•瀘sted CGI, with NO adverts and FREE. é–僼tp://www.cutandpastescripts.com -!><form method=POST action="http://www.cutandpastescripts.com/cgi-bin/formprocessing/forms.pl"><input type=hidden name="activenumber" value="123456789012"><input type="hidden" name="username" value="MikeP"><!-- INSERT YOUR NORMAL FORM FIELDS HERE --><!- Cut and Paste Scripts 2000 -!><!--c2--></div><!--ec2--><br /><br /><br /><b>B. Use a script you install on your own site to process your forms. </b><img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> More setup time! But you are not dependent on another site to process for you.<br />- You can not use FORM MAIL or any of the clones of FORM MAIL to process your emails here at TCH. The scripts have major security flaws.<br />- You can use other PHP or CGI scripts to process your form. Consider:<br />dodosmail (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://regretless.com/scripts/scripts.php#dodosmail<!--colorc--></span><!--/colorc-->)<br />phormjr (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.phorm.com/jr.php3<!--colorc--></span><!--/colorc-->) or <br />Ultimate form mail (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.surefirewebdesign.com/scripts/<!--colorc--></span><!--/colorc-->) <br /><br />-Samantha<!--content-->
the first script was a php script and for some reason it wouldn't send the form and the second was a perl script, it would send but the fields that we had setup was changed back to the default fields that we had changed when we recieved the email. I have tried to find that gen. again but forgot to bookmark it.<!--content-->
found it - this is the one we tried to use.<br /><a href="http://www.tele-pro.co.uk/scripts/contact%5Fform/" target="_blank">http://www.tele-pro.co.uk/scripts/contact%5Fform/</a><!--content-->
What form to email script are you using?<!--content-->
Have you tried <a href="http://regretless.com/scripts/scripts.php#dodosmail" target="_blank">Dodosmail</a>?<br />it comes with a sample test form, just edit the 2nd line of dodosmail.php to change to your e-mail adddress, and your are set, then modify the test form the way you want.<!--content-->
Forms have 3 main parts.<br />1) processing code-start the form (says who/where the form is processed)<br />2) fields for input (some may be required, etc)<br />3) submit button-end of form (can have other name on it - yours says send details)<br /><br />For this discussion, let's come back to #1 later. <br /><br /><b>#2 contains fairly generic pieces of code </b>that can be used by just about any form processor. The fields I have defined below are name, address, comment and heardabout. You can put them in tables, or directly on the page, etc to fit your design need.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Do not put <FORM></FORM> in front/behind each field as you have done with your current form. é•硂u start the form with code in #1 and it is ended with code in #3.<br /><br />Simple text entry:<br /> ?#60;input type="Text" name="name" size="60" maxlength="60"><br /><br />This one allows more input by the user than the field size visible: <br /> ?#60;input type="Text" name="address" size="60" maxlength="200"><br /><br />Simple comment/message entry: ?br /> ?#60;textarea name="comment" cols="52" rows="10" wrap="VIRTUAL"><br /><br />Simple dropdown choice:<br /> ?#60;SELECT NAME="Heard" SIZE=1><br /> ???<option value=heardabout selected>PLEASE CHOOSE ONE<br /> ???<option value=Google>Google<br /> ???<option value=Othersearch>Other Search Engine<br /> ???<option value=TCHforum>TCH Forum<br /> ???<option value=Other>Some other way<br /> ?#60;/SELECT><!--c2--></div><!--ec2--><br /><br /><b>#3 can be as simple as: </b><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><INPUT TYPE="button" name="printMe" onClick="print()" value="Print Page"><br /><INPUT TYPE="submit" value="Send" name="tlx_send"> ?<br /><INPUT TYPE="reset"><br /></form><!--c2--></div><!--ec2--><br /><br /><b>#1 is the tricky part. </b> You must have a way to send/push your form contents from your site to email receipient. You can do this in several ways.<br /><br /><b>A. Use a 3rd party site to forward your form content. </b>In this case you would not have to have a script on your site that you maintain or install to process the form. You sign up with a form processor, define the fields you want (name , address, etc) and they provide the processing code. Place it at the top of your form, before any fields you want. Remember the fields you defined at the processor must match the fields you build on your web page or you will get crud for an email!<br /><br />One such processor is <!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.cutandpastescripts.com <!--colorc--></span><!--/colorc--> The code below was generated by CutandPaste (posted here as example but tweaked so it is not be valid!)<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!- Form Processing, by Cut and Paste Scripts. é•瀘sted CGI, with NO adverts and FREE. é–僼tp://www.cutandpastescripts.com -!><form method=POST action="http://www.cutandpastescripts.com/cgi-bin/formprocessing/forms.pl"><input type=hidden name="activenumber" value="123456789012"><input type="hidden" name="username" value="MikeP"><!-- INSERT YOUR NORMAL FORM FIELDS HERE --><!- Cut and Paste Scripts 2000 -!><!--c2--></div><!--ec2--><br /><br /><br /><b>B. Use a script you install on your own site to process your forms. </b><img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> More setup time! But you are not dependent on another site to process for you.<br />- You can not use FORM MAIL or any of the clones of FORM MAIL to process your emails here at TCH. The scripts have major security flaws.<br />- You can use other PHP or CGI scripts to process your form. Consider:<br />dodosmail (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://regretless.com/scripts/scripts.php#dodosmail<!--colorc--></span><!--/colorc-->)<br />phormjr (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.phorm.com/jr.php3<!--colorc--></span><!--/colorc-->) or <br />Ultimate form mail (<!--coloro:blue--><span style="color:blue"><!--/coloro-->http://www.surefirewebdesign.com/scripts/<!--colorc--></span><!--/colorc-->) <br /><br />-Samantha<!--content-->
the first script was a php script and for some reason it wouldn't send the form and the second was a perl script, it would send but the fields that we had setup was changed back to the default fields that we had changed when we recieved the email. I have tried to find that gen. again but forgot to bookmark it.<!--content-->
found it - this is the one we tried to use.<br /><a href="http://www.tele-pro.co.uk/scripts/contact%5Fform/" target="_blank">http://www.tele-pro.co.uk/scripts/contact%5Fform/</a><!--content-->