i have an html form. here's part of it:
<select name="bgcolor"> <option value="000000">Black</option> <option value="FFFFFF">White</option> <option value="CCCCCC">Gray</option> </select>
the forms action is to a php file. this code works just peachy.
ImageFill($image, 0, 0, fromhex('ff0099'));
i would like to insert bgcolor from my form in place of ff0099 in the php part. But the only method I know doesn't work.
ImageFill($image, 0, 0, fromhex($_POST['bgcolor']));
can someone help me with this?