Using a Cookie to Store User Preferences

Select the Background Color:

Enter a Font Color:

You must enter the color in
Hexadecimal format (Red is #FF0000)
or the name of the color (Navy):


SOURCE CODE:
<html><head><title>Choose Cookie</title></head>
<body><h1>Using a Cookie to Store User Preferences</h1>
<form method="post" action="282ln09groupcookies.asp">
<h3>Select the Background Color:</h3>
<blockquote><p>
<select size="1" name="bc">
   <option value="#008000">Green</option>
   <option value="#800000">Maroon</option>
   <option value="#800080">Purple</option>
   <option value="#000080">Navy</option>
   <option value="#FF0000">Red</option>
   <option value="#000000">Black</option>
   <option value="#FFFFFF">White</option>
</select></p></blockquote>
<h3>Enter a Font Color:</h3>
<blockquote><p>
<input type="text" name="fc" size="20"></p>
<h3>You must enter the color in <br>
Hexadecimal format (Red is #FF0000) <br>
or the name of the color (Navy):</h3></blockquote>
<p><input type="submit" value="Submit" name="btnSubmit"></p>
</form></body></html>