I have this custom made reservation form, all it does it pass the values of selected fields to the next page (form) when clicking "submit", all fields are submitting the values except 1 field the "country"
You can view the form on the main page of the site: [LINK]
And here is the code of the form (html/javascript)
The country select's value is passing in the url. The problem must be on the receiving page, the select is not being set to the option with the value that was passed for country.
The country select's value is passing in the url. The problem must be on the receiving page, the select is not being set to the option with the value that was passed for country.
The receiving page is actually an iframe and the actual page is being linked from an external site which I don't have access to.
But I didn't understand what you said about the select is not being set to the option with the value...
But I didn't understand what you said about the select is not being set to the option with the value...
All I'm saying is I went to the page, selected Iceland in the country dropdown, filled in a phony e-mail and submitted. On the next/same/whatever page after submitting, the country value was in the url in address bar: 'Country=ISO' (so in other words, the select's value is being passed in the url correctly) but the country select (which is in the avisworld src'd iframe) is set to Lebanon (the Lebanon option has: selected="" attribute), not Iceland like I presume it's supposed to be since that was my prior selection? (I would presume that to be pre-selected for me on the following page after submitting is what I'm saying, don't know if you're actually set-up to do so or not). The select IS named 'Country', there is a hidden input named '%%Surrogate_Country' if that's what you are referring to, don't know what that input is for.
You think this is what's wrong? could it be case sensitive?
Best thing to do if you find something like that, is to try changing it. I actually did not notice a case difference and I thought I did look at that. These things can be mighty slippery!
I don't know what else to do, it's not case sensitive coz I tried with no luck.
And yes the select field has a "selected" on Lebanon, since it's a lebanese website.
Bookmarks