 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
chesterton
Joined: 01 Nov 2004 Posts: 1
|
Posted: Mon Nov 01, 2004 6:48 am Wondering Why This Form Works |
|
|
|
I have code on my order page that I borrowed from somewhere. It works, but I don't know why. It's at http://www.thetoffeehouse.com/order.asp.
e.g. If you choose Red for the Three Pound Tin, hit Add to Cart, it shows up in the next screen as red, with the right part number. However, this is the code behind that part of the form:
| Code: |
<font size=2 face="Verdana">Color:
<SELECT Name='P1'>
<Option selected Value =Gold>Gold</Option>
<Option Value =Red>Red</Option>
</SELECT>
<input type=hidden name='t1' value='d-Color;Red:partno=DSTIN3Red;Gold:partno=DSTIN3Gold;'> |
How does it know how to get the right part number for the right selection when it looks like there's no connection between the two, and the part number items are in a different order than the SELECT items?
I'm sure it's a simple answer, but I can't firgure it out.
If you need more code, let me know. But you probably can see it yourself behind the page.
Thanks,
Don |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|