Created
August 31, 2012 18:34
-
-
Save runemadsen/3557042 to your computer and use it in GitHub Desktop.
Simple Form Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Form Example</title> | |
<style type="text/css"> | |
body { | |
width: 30%; | |
background: white; | |
} | |
h1 { | |
color: #555; | |
background: white; | |
border-bottom: 1px solid #555; | |
} | |
p { | |
color: #121212; | |
font: normal 14px/16px Helvetica; | |
} | |
input[type="text"] { | |
padding: 5px; | |
font: normal 14px/16px Helvetica, sans-serif; | |
color: #555; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Simple form</h1> | |
<p>This is a simple form example.</p> | |
<form action="http://itp.nyu.edu/~irs221/sinatra/first_form/first_route" method="GET"> | |
<p><label>What is your name?</label> <input type="text" name="yourname" /></p> | |
Milk <input type="checkbox" value="milk" name="check[]"/> | |
Sugar <input type="checkbox" value="sugar" name="check[]"/> | |
Flour <input type="checkbox" value="flour" name="check[]"/> | |
Cocoa <input type="checkbox" value="cocoa" name="check[]"/> | |
<input type="submit" value="Submit!" /></p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment