DGrim Posted December 4, 2006 Share Posted December 4, 2006 I am in need of some code.We are running a Pick-em contest for 36 Bowl games. I need code for a form for the contestants to enter their picks. I need spaces for:NameAddressCityStateZipEmailUsernameI need 36 dropdown boxes or with two options in each. Or mabe radio buttons?Here is the important part.... I need a submit button that sends their choices to my email and then returns to a page that says something like "Thanks for your entry!".This is probably fairly simple. I just don't know how to do it.Any help would be greatly appreciated! Link to comment https://forums.phpfreaks.com/topic/29374-i-need-some-html-code-for-a-form/ Share on other sites More sharing options...
DeathStar Posted December 4, 2006 Share Posted December 4, 2006 Well for the submit button u would use something like this![code]<FORM enctype="text/plain" ACTION="mailto:[email protected]?subject=Subject of email" METHOD="POST">[/code]Dont know what you mean with the first part thow! Link to comment https://forums.phpfreaks.com/topic/29374-i-need-some-html-code-for-a-form/#findComment-134725 Share on other sites More sharing options...
Daniel0 Posted December 5, 2006 Share Posted December 5, 2006 Your form could be like this: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><head><title>Form</title></head><body><form action="send.php" method="post"> <table> <tr> <td><label for="name">Name:</label></td> <td><input type="text" name="name" id="name" /></td> </tr> <tr> <td><label for="address">Address:</label></td> <td><input type="text" name="address" id="address" /></td> </tr> <tr> <td><label for="city">City:</label></td> <td><input type="text" name="city" id="city" /></td> </tr> <tr> <td><label for="state">State:</label></td> <td><input type="text" name="state" id="state" /></td> </tr> <tr> <td><label for="zip">ZIP:</label></td> <td><input type="text" name="zip" id="zip" /></td> </tr> <tr> <td><label for="email">Email:</label></td> <td><input type="text" name="email" id="email" /></td> </tr> <tr> <td><label for="username">Username:</label></td> <td><input type="text" name="username" id="username" /></td> </tr> <tr> <td>Radio button 1:</td> <td><label><input type="radio" name="rb1" id="rb1_v1" value="value 1" /> Value 1</label> <label><input type="radio" name="rb1" id="rb1_v2" value="value 2" /> Value 2</label></td> </tr> <tr> <td>...</td> <td>...</td> </tr> <tr> <td colspan="2"><button type="submit">Send</button></td> </tr> </table></form></body></html>[/code] Link to comment https://forums.phpfreaks.com/topic/29374-i-need-some-html-code-for-a-form/#findComment-135771 Share on other sites More sharing options...
DeathStar Posted December 8, 2006 Share Posted December 8, 2006 Could... Link to comment https://forums.phpfreaks.com/topic/29374-i-need-some-html-code-for-a-form/#findComment-137571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.