Somebody asked for a button function. Here's one way to do it :
/* ------------------------------------------------------------
Format and return a table with two centered buttons --
"Reset and Submit".
---------------------------------------------------------- */
function btn_ResetSubmit($Width="35%",
$Caption1="Clear Form",
$Caption2="Continue >>",
$Color1="red",
$Color2="limegreen")
{
$table_buttons = "
<TABLE ALIGN = CENTER BORDER=3 CELLPADDING=5 CELLSPACING=5 WIDTH=\"$Width\">
<TR>
<TD ALIGN=LEFT BGCOLOR=\"$Color1\"><INPUT TYPE=\"reset\" VALUE= \"$Caption1\"></TD>
<TD ALIGN=CENTER WIDTH=10 BORDERCOLOR=\"blue\" BGCOLOR=\"lightgrey\"</TD>
<TD ALIGN=RIGHT BGCOLOR=\"$Color2\"><INPUT TYPE=\"submit\" VALUE= \"$Caption2\"></TD>
</TR>
</TABLE>
";
return $table_buttons;
}
You can set the default parameters to whatever suits you, of course.