Jump to content

I need some HTML code for a form


DGrim

Recommended Posts

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:

Name
Address
City
State
Zip
Email
Username

I 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

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!
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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.