dv****@ix.netcom.com wrote:
Hello,
Another newbie here... I've been trying to make this work for days now
and have finally decided to post as I can't seem to get it to work.
Here's what I'm trying to do...
I have a select box with three options and a separate hidden field.
The value of a hidden field is dependent upon which of the three
options is selected. For example, the three select options are 1, 2,
3... if 1 is selected, the value of the hidden field is 9.99, if 2 is
selected the value of the hidden field is 12.99, if 3 is selected, the
value of the hidden field is 15.99.
Thanks in advance for your help!
-Dave
What happens to this data when the form is submitted? They are entered
into a database?
These look like prices. You don't really want the customer submitting
their own prices. I could make a form that submits any price I want
based on this type of setup. Hidden isn't really hidden. If you use
"View Source" in your browser you can see it. Unless you are doing some
server-side processing you may sell option 2 to me for $0.01. You
probably want to submit only the 1, 2, or 3 and then on the server-side
match the selection with the price.
Peter