View Full Version : Output variable?

05-29-2006, 06:55 AM
DD: Chained selects

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

05-29-2006, 10:17 AM
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?

05-29-2006, 12:48 PM
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 :-)


05-29-2006, 01:57 PM
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.

06-07-2006, 09:50 AM
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.


06-07-2006, 10:14 AM
style="display:none;" will hide your select box.

06-07-2006, 10:28 AM
Just what I needed :-)