Page is a not externally linkable
pixeltierra - 2:52 pm on Sep 11, 2006 (gmt 0)
1) use one field Option 1 can easily be accomplished by making a value like this: Option 2 can be accomplished by using an array I recommend option one.
Since only the 'value' is sent to the script that's all you get, so you have to work with it. You have at least two options:
2) use two fields
value="red widget-$50" and then using php explode() on the '-' to get your two values.
name="widget['type']" value="green"
name="widget['price']" value="50"
This way you can handle the data as one 'variable' (widget) in the script.