Jump to content

forms and arrays?


pvtpyro

Recommended Posts

I'm having a little trouble. I will start by showing what I have done.

i have an html form. here's part of it:
[code]    <select name="bgcolor">
      <option value="000000">Black</option>
      <option value="FFFFFF">White</option>
      <option value="CCCCCC">Gray</option>
    </select>[/code]

the forms action is to a php file. this code works just peachy.
[code]ImageFill($image, 0, 0, fromhex('ff0099'));[/code]

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.
[code]ImageFill($image, 0, 0, fromhex($_POST['bgcolor']));[/code]

can someone help me with this?
Link to comment
https://forums.phpfreaks.com/topic/19076-forms-and-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.