I cant get this to work. I dont want to learn PHP or Javascript beyond what I need, but this is what I've got so far.
I collect some information in a form. I use javascript to do a calculation arriving at a variable called grandtotal which contains a numeric value.
The form action is to run formmail.php. Also in the form is a hidden input tag which redirects to page 2.
The redirect is as follows
http://www.mysite.org.uk/page_2.html?total=grandtotal
When page 2 appears the address shows this plus some code added by formmail.php
?total=grandtotal&PHPSESSID=8e5b2d6367964a597d0b171a5477f179
I want to collect the value which is either in total or grandtotal - I dont understand which.
Please please please - exactly how do I do this??
I have tried variations on
<?PHP
$total = $_GET['grandtotal']
?>
I then need to process the number that hopefully arrives into a javascript variable called amount which PayPal will accept as part of a payment button. I know this bit works if I set amount manually.
Help me - I looked, searched and tried allsorts but am getting more confused.
Many many thanks