Programs for Forms
by
Prof. A. Schlissel
Note: Several programs of the previous edition of these notes were deleted causing breaks in the numerical sequence of the programs.
<html>
<head>
<title> template form0</title>
</head>
<body bgcolor=yellow text=black>
<form>
</form>
</body>
</html>
<html>
<head>
<title> text form1</title>
</head>
<body bgcolor=yellow text=black>
<h4>
Enter the requested names:
<form>
name:<input type=text name=who value="" size=20><br>
name:<input type=text name=who value="" size=20><br>
name:<input type=text name=who value="" size=20><br>
<input type=reset value=reset>
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> form2</title>
</head>
<body bgcolor=yellow text=black>
<h4>
enter the information requested:
<form>
your name:<input type=text name=who value="" size=20><br>
your phone number:<input type=text name=phone value="" size=15><br><br>
click to clear entries<input type=reset value=reset>
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> form4</title>
</head>
<body bgcolor=yellow text=black>
<h4>
<center>
form embedded into a table<br>
enter information requested:<br>
<form>
<table>
<tr>
<td align=right><h4>your name:</h4>
<td><input type=text value="" size=15>
<tr>
<td align=right><h4>your phone number:</h4>
<td><input type=text value="" size=15>
<tr>
<td align=right><h4>click to reset</h4>
<td><input type=reset value=reset>
</table>
</form>
</center>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> radio form5</title>
</head>
<body bgcolor=yellow text=black>
<h4>
radio buttons arranged horizontally<br>
make your choice:
<form>
<input type=radio name=travel value=car>car
<input type=radio name=travel value=bike>bike
<input type=radio name=travel value=plane>plane
<input type=radio name=travel value=ballon>ballon<br><br>
<input type=reset value=reset>click to reset
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> radio form5b</title>
</head>
<body bgcolor=yellow text=black>
<h4>
radio buttons arranged vertically<br>
make your choice:<br>
<form>
<input type=radio name=travel value=car>car<br>
<input type=radio name=travel value=bike>bike<br>
<input type=radio name=travel value=plane>plane<br>
<input type=radio name=travel value=ballon>ballon<br><br>
<input type=reset value=reset>click to reset
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> checkbox form6</title>
</head>
<body bgcolor=yellow text=black>
<h4>
checkboxes arranged vertically<br>
make your choices:<br>
<form>
<input type=checkbox name=travel value=car>car
<input type=checkbox name=travel value=bike>bike
<input type=checkbox name=travel value=plane>plane
<input type=checkbox name=travel value=baloon>baloon<br><br>
<input type=reset value=reset>click to reset
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> checkbox form6b</title>
</head>
<body bgcolor=yellow text=black>
<h4>
checkboxes arranged vertically<br>
make your choices:
<form>
<input type=checkbox name=travel value=car>car<br>
<input type=checkbox name=travel value=bike>bike<br>
<input type=checkbox name=travel value=plane>plane<br>
<input type=checkbox name=travel value=baloon>baloon<br><br>
<input type=reset value=reset>click to reset
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> select form7b</title>
</head>
<body bgcolor=yellow text=black>
<h4>
make your choice:<br>
<form>
<select name=food size=1>
<option value=none>(none)
<option value=cheese>cheese
<option value=bread>bread
<option value=veal>veal
<option value=chicken>chicken
<option value=steak>steak
<option value=vegetables>vegetables
</select>
<input type=reset value=reset>click to reset
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title>textarea form8</title>
</head>
<body bgcolor=yellow text=black>
<h4>
enter text into designated area:<br>
<form>
<textarea name=comments rows=3 cols=50>
</textarea>
<input type=reset value=clear>click to clear
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title>arthur's deli form12</title>
</head>
<body bgcolor=yellow text=black>
<center>
<h3>arthur's deli</h3>
<h4>
make your selections:<br>
<form>
<table>
<tr>
<td><b>what kind of sandwich?</b>
<td><select name=sandwich>
<option value=none>(none)
<option value=egg>egg salad on rye
<option value=tuna>tuna salad on bagel
<option value=turkey>turkey on whole wheat
<option value=cc>cream cheese on pumpernickel
</select>
<tr><td><h4>what kind of soup?</h4>
<td>
<select name=soup>
<option value=none>(none)
<option value=veg>vegetable soup
<option value=tomato>tomato and rice
<option lentil>lentil soup
</select>
<tr><td><h4>what kind of beverage?</h4>
<td><select name=drink>
<option value=none>(none)
<option value=coke>coke
<option value=tea>tea
<option value=coffee>coffee
<option value=root>root bear
<option value=milk>milk
</select>
<tr><td><h4>what kind of desert?</h4>
<td><select name=desert>
<option value=none>(none)
<option value=fruit>fruit cup
<option value=icream>ice cream
<option value=cheesecake>cheese cake
<option value=chocolatecake>chocolate cake
</select>
<tr><td><h4>click to clear</h4> <td><input type=reset value=clear>
</table>
</form>
</h4>
</center>
</body>
</html>
Click to view
<html>
<head>
<title>arthur's deli tables and reset form13c</title>
</head>
<body bgcolor=yellow text=black>
<center>
<h3>arthur's deli</h3>
<h4>
make your selections:<br>
<form>
<table>
<tr>
<td align=right><b>what kind of sandwich?</b>
<td><select name=sandwich>
<option value=none>(none)
<option value=egg>egg salad on rye
<option value=tuna>tuna salad on bagel
<option value=turkey>turkey on whole wheat
<option value=cc>cream cheese on pumpernickel
</select>
<tr><td align=right><h4>what kind of soup?</h4>
<td><select name=soup>
<option value=none>(none)
<option value=veg>vegetable soup
<option value=tomato>tomato and rice
<option lentil>lentil soup
</select>
<tr><td align=right><h4>what kind of beverage?</h4>
<td><select name=drink>
<option value=none>(none)
<option value=coke>coke
<option value=tea>tea
<option value=coffee>coffee
<option value=root>root bear
<option value=milk>milk
</select>
<tr><td align=right><h4>what kind of desert?</h4>
<td><select name=desert>
<option value=none>(none)
<option value=fruit>fruit cup
<option value=icream>ice cream
<option value=cheesecake>cheese cake
<option value=chocolatecake>chocolate cake
</select>
<tr><td align=right><h4>enter your name:</h4>
<td><input type=text value="" size=15>
<tr><td align=right><h4>click to clear:</h4>
<td><input type=reset value=clear>
</table>
</form>
</h4>
</center>
</body>
</html>
Click to view
<html>
<head>
<title> forms form14</title>
</head>
<body bgcolor=yellow text=black>
<h4>
enter the information requested:
<form>
name first name:<input type=text name=fname value="" size=15><br>
name second name:<input type=text name=sname value="" size=15><br>
enter phone number:<input type=text name=phone value="" size=15><br><br>
click to reset entries<input type=reset value=reset>
</form>
</h4>
</body>
</html>
Click to view
<html>
<head>
<title> forms form14b</title>
</head>
<body bgcolor=yellow text=black>
<h4>
enter the information requested:
<form>
<table>
<tr><td align=right><h4>name first name:
<td><input type=text name=fname value="" size=15>
<tr><td align=right><h4>enter second name:
<td><input type=text name=sname value="" size=15>
<tr><td align=right><h4>enter phone number:
<td><input type=text name=phone value="" size=15>
<tr><td align=right><h4>click to reset entries:
<td><input type=reset value=reset>
</table>
</form>
</h4>
</body>
</html>
Click to view
Back to HTML program page