Laster
06-28-2007, 09:09 AM
Hi,
I have a submit form in an I frame from a central source that appears on a number of my sites. There are two bits of info that are different for each site but the other parts stay the same.
Is there a way of holding the two bits of info ina function at the top of each page and then when the form is submited these two bits of info attach to the url string?
The form submits to a url with a string of queries the two I want to hold on the page rather than the iframe form are:
<input name="hotel" type="hidden" id="hotel" value="GB059">
<input name="ref" type="hidden" id="ref" value="OSGB059">
The values are different for every site. and the url attaches them like www.billiybob.com/hotels/availability?day=3&month=4&hotel=GB059 etc...
Can the form within the iframe collect the two bits of info from the parent page and add them as if they were in the form all along?
Thanks for any help :)
I have a submit form in an I frame from a central source that appears on a number of my sites. There are two bits of info that are different for each site but the other parts stay the same.
Is there a way of holding the two bits of info ina function at the top of each page and then when the form is submited these two bits of info attach to the url string?
The form submits to a url with a string of queries the two I want to hold on the page rather than the iframe form are:
<input name="hotel" type="hidden" id="hotel" value="GB059">
<input name="ref" type="hidden" id="ref" value="OSGB059">
The values are different for every site. and the url attaches them like www.billiybob.com/hotels/availability?day=3&month=4&hotel=GB059 etc...
Can the form within the iframe collect the two bits of info from the parent page and add them as if they were in the form all along?
Thanks for any help :)