can some one help me with this little code here.. i have the color and when u click on the color it auto change.. but instead i got an error code state that the "forms[0]" is not null can some help me solve this one
thanks
<FORM ACTION="index.cgi" METHOD="POST" NAME="THEFORM">
print<<Style4;
<INPUT TYPE="TEXT" NAME="LinkColor" VALUE="$LinkColor" SIZE=7 MAXLENGTH=7>
</td></tr>
<tr bgcolor="#f7f7f7">
<TD width=5 bgcolor="#000080">
</TD>
<td>
<FONT SIZE="2" FACE="Verdana, Arial"><B>Visited Link Color</B>
</FONT>
</td>
<td valign=top NOWRAP>
<SELECT name="VisitedLinkColorChoice" onChange="forms[0].VisitedLinkColor.value=options[selectedIndex].value">
Style4
&Colors;
sub Colors {
print<<TheColors;
<OPTION value="" selected> Select New Color?
<OPTION value="#ffffff" > White
<OPTION value="#ff0000" > Red
<OPTION value="#00ff00" > Green
<OPTION value="#0000ff" > Blue
<OPTION value="#ff00ff" > Magenta
<OPTION value="#00ffff" > Cyan
<OPTION value="#ffff00" > Yellow
<OPTION value="#000000" > Black
<OPTION value="#70db93" > Aquamarine
<OPTION value="#a62a2a" > Brown
<OPTION value="#b87333" > Copper
<OPTION value="#ff7f00" > Coral
<OPTION value="#871f78" > Dark Purple
<OPTION value="#97694f" > Dark Tan
<OPTION value="#238e23" > Forest Green
<OPTION value="#cd7f32" > Gold
<OPTION value="#a8a8a8" > Grey
<OPTION value="#9f9f5f" > Khaki
<OPTION value="#c0d9d9" > Light Blue
<OPTION value="#808000" > Light Copper
<OPTION value="#cccccc" > Light Grey
<OPTION value="#ffffcc" > Light Yellow
<OPTION value="#32cd32" > Lime Green
<OPTION value="#8e236b" > Maroon
<OPTION value="#2f2f4f" > Midnight Blue
<OPTION value="#000080" > Navy Blue
<OPTION value="#ff7f00" > Orange
<OPTION value="#8FBC8F" > Pale Green
<OPTION value="#BC8F8F" > Pink
<OPTION value="#E6E8fA" > Silver
<OPTION value="#3299CC" > Sky Blue
<OPTION value="#F7F7F7" > UBB Col1 Grey
<OPTION value="#DEDFDF" > UBB Col2 Grey
<OPTION value="#CC3299" > Violet
<OPTION value="" > Other (type code)...
</SELECT>
TheColors
} # end colors sr