Im trying to send 3 bits of information to another page but I dont know how to do it.
First page:
In the first page, the user types in postcodes in two different form text boxes and upon submission the price is displayed below along with the route being plotted on a google map to the left as well as hiding the "calcualate price button" and showing the "confirm & book" button. Once the button is clicked it takes me to booking2.html with some paramaters at the end. An example is shown below
One problem is that results2=result s2, (im assuming) there should be a price shown there as in the page quote3999.html, <p id="results2"> shows the price and I was advised to create a hidden input with the same id so that it would pass the name/value along with the addresses.
Heres the script someone made for me which brings (some of) the results to booking2.html. Please note that quote is the name of the form that contains everything.
[Second Page - http://edgwarelocalcars.co.uk/Booking2.html]
This is the page I wish to display the results. To be more precise, above the table containing the cars. I want the price to be displayed along with the addresses, and also have the price underneath the first car, then for the second I need the price to be displayed with £2 added to it, third car should be the same but £10 added but this bits I will work on later, I just want to concentrate on the values being passed.
At the moment I dont know how to get the address1 and address2 along with the price displayed.
First page:
In the first page, the user types in postcodes in two different form text boxes and upon submission the price is displayed below along with the route being plotted on a google map to the left as well as hiding the "calcualate price button" and showing the "confirm & book" button. Once the button is clicked it takes me to booking2.html with some paramaters at the end. An example is shown below
One problem is that results2=result s2, (im assuming) there should be a price shown there as in the page quote3999.html, <p id="results2"> shows the price and I was advised to create a hidden input with the same id so that it would pass the name/value along with the addresses.
Code:
<p id="results"></p> <p id="results2"></p> <p id="results3"></p> <input name="price" id="results2" type="hidden" />
Code:
function showLocation() {
if(document.getElementById('quote').innerHTML!='') { // need to wait for the result from gmaps
document.forms[0].onsubmit = null;
document.forms[0].action = 'http://edgwarelocalcars.co.uk/Booking2.html';
document.getElementById('GMsubmit').style.display = 'none';
document.getElementById('CBsubmit').style.display = '';
This is the page I wish to display the results. To be more precise, above the table containing the cars. I want the price to be displayed along with the addresses, and also have the price underneath the first car, then for the second I need the price to be displayed with £2 added to it, third car should be the same but £10 added but this bits I will work on later, I just want to concentrate on the values being passed.
At the moment I dont know how to get the address1 and address2 along with the price displayed.
Comment