Skip to content

Instantly share code, notes, and snippets.

@fengxx
Created October 18, 2012 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengxx/3910257 to your computer and use it in GitHub Desktop.
Save fengxx/3910257 to your computer and use it in GitHub Desktop.
simple form
<html>
<form id="form1" action="/testpost" method="post">
<table>
<tr>
<td>
<label for="username">Name: </label>
</td>
<td>
<input type="text" id="username" name="username"></input>
</td>
</tr>
<tr><td>
<label for="state">State: </label>
</td>
<td>
<select name="state" id="state">
<option value="S0001">S1</option>
<option value="S0002">S2</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="type">Type: </label>
</td>
<td>
<input type="radio" name="type" value="1st" checked>TypeA
<input type="radio" name="type" value="2nd">TypeB
</td>
</tr>
</table>
<input type="submit" value="Submit"></input>
</form>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment