-
Output variable?
DD: Chained selects
http://www.dynamicdrive.com/dynamici...ects/index.htm
I have implemented the above script on my page, but I'm interested in getting the data out as variables.
Is this possible?
I'm also interested in getting a variable, not visible to the user, is this possible?
The point is to send the values to "the next page" for reviewing by the user.
I hope this makes sense
Best regards
Danjel
-
-
The script uses form elements. You can submit the form to a server-side script just as with any other form.
Is this what you meant?
-
-
Well, some of it.
If we take the example from the web.
The customer has found a car using the picklists.
Then I want to show the selections the customer made on a new webpage, including the price of the car, and some extra options (Those have nothing to do with the DD script).
So, what I'm looking for, is a way to get the price sent to the next page.
The price is not shown in any of the picklists though.
An alternate option would be to have the price shown on the first page with the picklists, so that it changes, depending on the selections made by the customer. I know that this is not in the DD script, but I need the price, anyway.
I hope this made it easier to understand :-)
TIA
Danjel
-
-
No, you need the price to be stored server-side and retrieved according to the model selected.
Or you'll get people ordering £10,000 cars and paying tuppence.
-
-
I know that it is possible to fake the price, but that is not critical for me at this point.
But a way for me to get around it could be to hide a field, is that possible?
I have tried "type=hidden", but that does not work, maybe because it is a "<select...".
I have tried to change it to "<input ...", but then the field is just empty.
Any new ideas ?
I will, of course, send the resulting code to you, if you are interested.
TIA
Danjel
-
-
style="display:none;" will hide your select box.
-
-
Just what I needed :-)
Thanks.
DJ
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks