Passing variable value to another page
document.getElementById("price").innerHTML = price;
Once the user has finished making their choices, they then click the forms submit button (method="post") to be taken to a confirmation page (confirm.php).
Here, I can display the users preferences using php code like:
<?php echo $_POST['size'] ?>
<?php echo $_POST['color'] ?> etc, etc...
But I'm not sure how to pass the price over!!!!
The preferences come from the form and are picked up with php.
document.write('<input type="hidden" name="quote" value="'price'" ?>" />')
and some other stuff too, but I still can't get it to work!
Or do I pass the value in the url, like confirm.php?Quote='price'?
Again, what is the syntax, as I can't seem to get it to work?
Any help would be great. Thanks.