mike Posted February 9, 2004 Posted February 9, 2004 Hi Folks! I am new to form creation so bear with me but what would be the best way to create forms to get info? I haven't learned css well yet. Will it work with tch if I create them with html code in my html editor? What would the "action" be if so, or "where directed"?? Otherwise I will learn the best method. thanks Quote
TCH-Bruce Posted February 9, 2004 Posted February 9, 2004 (edited) I create my forms using HTML. Then I call an action to a CGI script using the "POST" method. Example using a Perl script: ... Edited February 9, 2004 by TCH-Bruce Quote
mike Posted February 9, 2004 Author Posted February 9, 2004 Thanks. I tried one from my html editor and when I click submit, it gives me a warning window from Internet Explorer about sending an email and revealing users email address to recipient and email not encrypted. Who wants that? ??? Quote
mike Posted February 9, 2004 Author Posted February 9, 2004 So, Bruce I would have to have my cgi setup on server? Quote
RockNRollPig Posted February 9, 2004 Posted February 9, 2004 Mike, you don't have to have (and I don't think Bruce implied either) CGI setup to run forms. The action of forms can call a plethora of things from CGI to PHP to itself. As far as your warning message, you might wanna post your code for us to take a look at to see what the problem is. Quote
mike Posted February 9, 2004 Author Posted February 9, 2004 Ok, here's the "mess" or "misunderstanding I've got: <form name="PCClients" action="http://www.michaelstreeter.com/" method="post"> <table border="0"> <tr> <td><input type="text" name="firstname" size="40" maxlength="256" value="Enter First Name"> </td> </tr> <tr> <td><input type="text" name="lastname" size="40" maxlength="256" value="Enter Last Name"> </td> </tr> <tr> <td><input type="text" name="emailaddr" size="40" maxlength="256" value="Enter Email Address"> </td> </tr> <tr> <td><input type="text" name="city" size="40" maxlength="256" value="Enter Your City"> </td> </tr> <tr> <td><input type="text" name="state" size="40" maxlength="256" value="Enter State"> <br></td> </tr> </table> <br><br> Check the Service(s) You Are Interested In: <br><br> <table border="0"> <tr> <td><input type="checkbox" name="services" value="Web Site Design"> Web Site Design<br> </td> </tr> <tr> <td><input type="checkbox" name="services" value="Web Hosting , Domain Name, etc"> Web Hosting , Domain Name, etc<br> </td> </tr> <tr> <td><input type="checkbox" name="services" value="Computer Training"> Computer Training<br> </td> </tr> <tr> <td><input type="checkbox" name="services" value="Software Training"> Software Training<br> </td> </tr> <tr> <td><input type="checkbox" name="services" value="Custom Programming ( MSaccess)"> Custom Programming ( MSaccess)<br> </td> </tr> </table> <br><br> If You Are Interested In Web Design:<br><br> <table summary="" border="0"> <tr> <td><input type="checkbox" name="typeofsite" value="Small Personal Site"> Small Personal Site<br> </td> </tr> <tr> <td><input type="checkbox" name="typeofsite" value="Hobby Site"> Hobby Site<br> </td> </tr> <tr> <td><input type="checkbox" name="typeofsite" value="Small Business"> Small Business<br> </td> </tr> <tr> <td><input type="checkbox" name="typeofsite" value="Intermediate Size Business"> Intermediate Size Business<br> </td> </tr> <tr> <td><input type="checkbox" name="typeofsite" value="Large Business"> Large Business<br> </td> </tr> </table> <br><br> Leave Any Additional Comments: <br> <table border="10"> <tr> <td><textarea name="comments" cols="30" rows="10"> </textarea></td> </tr> </table><br><br><input TYPE="reset" VALUE="Clear Form"> <INPUT TYPE="hidden" NAME="email_to" VALUE="mic@michaelstreeter.com"> <input type="submit" value="Submit"> </form> thanks for the help Rock Sign Quote
surefire Posted February 9, 2004 Posted February 9, 2004 It's safe to say that this needs fixing <form name="PCClients" action="http://www.michaelstreeter.com/" method="post"> Your form should point to a specific file that isn't the front page of your site. The page it should point to needs to be able to do the following Parse the data Check it for validity Email you the data There are plenty of cgi/perl or php scripts that can do that. But right now, your form is sending all the data to your index page... actually just your public_html directory... and that's incorrect. Quote
natimage Posted February 9, 2004 Posted February 9, 2004 (edited) Mike...TCH Jack has an awesome Form Mail script that he's been working on and upgrading frequently for quite some time. You can read more about it here: SureFire Web Design Ultimate Form Mail. You'll have to learn some new things...but he makes it pretty easy and provides a support forum just for that script! Edited February 9, 2004 by natimage Quote
mike Posted February 9, 2004 Author Posted February 9, 2004 Sounds like a great idea to me. thanks Rock Sign Quote
mike Posted February 9, 2004 Author Posted February 9, 2004 TCH JACK THANK YOU!!! ( all caps do to massive elation ) Rock Sign thanks to all of you tch folks for the help. For me? Jacks script was the way to go. It just works great !!!! Quote
surefire Posted February 9, 2004 Posted February 9, 2004 Glad you like it. Thank you Natimage for recommending. There are lots of form processors out there. I'm glad you find mine worthwhile. Quote
amansker Posted February 10, 2004 Posted February 10, 2004 Dittos! As a relative newbie I had the sample contact form working properly in 10 minutes. Thanks! Quote
mike Posted February 11, 2004 Author Posted February 11, 2004 There are lots of form processors out there. I'm glad you find mine worthwhile. That may be, Jack, but I tried A LOT of them, and they don't cut the mustard like yours does. I put a link on my site for you and voted at hotscripts. Quote
Noctorum Posted February 11, 2004 Posted February 11, 2004 Where can I find documentation on setting up UFM? Step by step would be nice, but anything would be helpful . ~Alex Quote
Lianna Posted February 12, 2004 Posted February 12, 2004 UFM Links: Documentation Get Help That should do the trick. Quote
Noctorum Posted February 12, 2004 Posted February 12, 2004 thanks, that set it up just fine for me Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
× Pasted as rich text. Paste as plain text instead
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.