// radiobuttons1 - a form having one set of radio buttons.  
// An initial setting can be produced by passing a value 
// in the 'favcolor' variable.

// load the 'favcolor' var if given..
#cgivar favcolor

// the following could also be used to set a default..
// #setifnotgiven favcolor = red

#set TITLE = "radiobuttons1"
#include top

<center>

<br>
<br>

<form action="@CGIPROG" method=GET>
#formtarget radiobuttons1_capture

Your favorite color: 

<input name=favcolor type=radio value=red
#if @favcolor = red
  checked
#endif
> Red &nbsp;

<input name=favcolor type=radio value=blue
#if @favcolor = blue
  checked
#endif
> Blue &nbsp;

<input name=favcolor type=radio value=green
#if @favcolor = green
  checked
#endif
> Green &nbsp;

<br>
<br>

<input type=submit value=Go>

