Skip to content

Instantly share code, notes, and snippets.

@eirikbakke
Created July 1, 2011 22:05
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 eirikbakke/1059502 to your computer and use it in GitHub Desktop.
Save eirikbakke/1059502 to your computer and use it in GitHub Desktop.
Example of an HTML form
<!-- To submit form data back to the same page (and thus the same Servlet), use "#" for the
action. Otherwise specify a relative URL to a different page for the action. -->
<form action="#">
<label for="ageField" >Your age: </label>
<input type="text" name="ageParam" id="ageField" /><br/>
<label for="colorField">Favorite color:</label>
<input type="text" name="colorParam" id="colorField"/><br/>
<input type="submit" value="Click me to submit!"/>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment