This is a discussion on "Creating web forms" within the Web Page Design section. This forum, and the thread "Creating web forms are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Creating web forms
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Creating web forms
Hello all, I'm using dreamweaver 8, and have setup my site. But I want to create a form for visitors to leave contact information and that be sent to me via email. It seems a bit involved, and I found some online sites that will generate forms, but I can't seem to find one that won't leave their company info on the form. Please help with some instructions or suggestions.
|
|
|
|
#2
|
|||
|
|||
|
Re: Creating web forms
PHP mail() would be your best bet assuming your host supports PHP which it should if you pay for it, alternately you could use CGI-Email etc.. A bit more info would help.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Creating web forms
I think im too kind sometimes
Try this link :: http://www.phpfreaks.com/tutorials/130/0.php Its a complete tutorial, you will probably find that you diverge from it a little as you work through it... thats good, better that you figure things out for yourself than just try and get by on the code the auther provides. Hope it helps. |
|
#4
|
|||
|
|||
|
Re: Creating web forms
Thanks for the link. And I appreciate the advice!
|
|
#5
|
|||
|
|||
|
Re: Creating web forms
Here is a good form that I did for a company...feel free to try it out...you might find you like it better, as it has auto-responders and such. If you like it, I will help you get it set up on your site.
http://support.jbwebsitesolutions.com/Contact/ |
|
#6
|
|||
|
|||
|
Re: Creating web forms
Hey Jacob, I truly appreciate the offer. I will try myself this weekend and see if I can set it up. If not, I will take your offer and try to use and modify yours. I thank you!
|
|
#7
|
|||
|
|||
|
Re: Creating web forms
Here's one I used to use
http://www.joe2torials.com/view_tutorial.php?view=68 It has validation and everything. |
|
#8
|
|||
|
|||
|
Re: Creating web forms
Is any other way to create forms or php would be the best? Is php easyer to learn than javascript?
|
|
#9
|
|||
|
|||
|
Re: Creating web forms
Now since my last post I've found a site that you can drag and drop the lines you want for a form, then copy and paste the code into your site. www.jotform.com Its really easy and fast, and there are so many options including "uploading files" that it just seems easier then trying to piece together codes. I know its cheating... but the site doesn't even put any of their text on your forms.
|
|
#10
|
|||
|
|||
|
Re: Creating web forms
That site is quite nifty but you still have the issue that if it everything doesn't work as you expected - then what do you do?
I would be interested to see an example of the generated code and whether it allows for 'sticky data', mandatory fields, etc. Chubbs: There are many similarities between PHP and JavaScript and learning one will help with the other. I wouldn't say that either one is the easier to learn. With these languages, you don't try and learn everything they are capable of. You learn the basics and then add to your knowledge in order to achieve a particular task. |
|
#11
|
|||
|
|||
|
Re: Creating web forms
I've pasted below the source code for one of the forms I've created. (its a bit long...)
<style> body,td,legend { background: white ; color: blue; font-family: Verdana; font-size: 14px; } span.required{ font-size: 13px; color: red; } </style><form action="http://www.jotform.com/submit/763809418" method="POST"><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q0">First Name <span class="required">*</span></label> </td> <td valign="bottom"> <input type="text" size="20" name="q0_FirstName" id="q0"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q1">Last Name <span class="required">*</span></label> </td> <td valign="bottom"> <input type="text" size="20" name="q1_LastName" id="q1"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q2">Address <span class="required">*</span></label> </td> <td valign="bottom"> <input type="text" size="20" name="q2_Address" id="q2"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q8">Address2</label> </td> <td valign="bottom"> <input type="text" size="20" name="q8_Address2" id="q8"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q3">City <span class="required">*</span></label> </td> <td valign="bottom"> <input type="text" size="20" name="q3_City" id="q3"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q4">State <span class="required">*</span></label> </td> <td valign="bottom"> <select name="q4_State" id="q4"> <option></option> <option>AL</option> <option>AK</option> <option>AR</option> <option>AZ</option> <option>CA</option> <option>CO</option> <option>CT</option> <option>DC</option> <option>DE</option> <option>FL</option> <option>GA</option> <option>HI</option> <option>ID</option> <option>IL</option> <option>IN</option> <option>IA</option> <option>KS</option> <option>KY</option> <option>LA</option> <option>ME</option> <option>MD</option> <option>MA</option> <option>MI</option> <option>MN</option> <option>MS</option> <option>MO</option> <option>MT</option> <option>NE</option> <option>NV</option> <option>NH</option> <option>NJ</option> <option>NM</option> <option>NY</option> <option>NC</option> <option>ND</option> <option>OH</option> <option>OK</option> <option>OR</option> <option>PA</option> <option>RI</option> <option>SC</option> <option>SD</option> <option>TN</option> <option>TX</option> <option>UT</option> <option>VT</option> <option>VA</option> <option>WA</option> <option>WV</option> <option>WI</option> <option>WY</option> </select> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q10">Phone</label> </td> <td valign="bottom"> <input type="text" size="20" name="q10_Phone" id="q10"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > <label for="q9">Email <span class="required">*</span></label> </td> <td valign="bottom"> <input type="text" size="20" name="q9_Email" id="q9"> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="top" > <label for="q11">Comments</label> </td> <td valign="bottom"> <textarea wrap="soft" cols="30" rows="3" name="q11_Comments" id="q11"></textarea> </td> </tr></table><table width="520" cellpadding="5" cellspacing="0"> <tr valign="bottom"> <td width="150" valign="bottom" > </td> <td valign="bottom"> <input type="submit" name="q7_" value="Submit"> </td> </tr></table></form> |
|
#12
|
|||
|
|||
|
Re: Creating web forms
Thnx Geoff. And what else u can use to create forms?
|
|
#13
|
|||
|
|||
|
Re: Creating web forms
Creating forms is honestly so ridiculously easy i wouldnt bother using that site .... really... the hard bit is the php script that sends the info.
|
|
#14
|
|||
|
|||
|
Re: Creating web forms
The code that site produces is very basic and doesn't even come close to providing what I would consider acceptable form code and processing script.
Learn to do it by hand. |
|
#15
|
|||
|
|||
|
Re: Creating web forms
plus it looks awfull ... code should be sexy
|
![]() |
| Tags |
| web forms |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forms | nzamusangamungu | Web Page Design | 9 | Nov 17th, 2006 10:31 |
| Forms | nzamusangamungu | Web Page Design | 5 | Nov 13th, 2006 13:10 |
| Forms Q | joshcxa | Web Page Design | 2 | Jun 21st, 2005 22:52 |
| Help with forms ... | Drysdale | Web Page Design | 3 | Jun 9th, 2005 08:34 |