I have the following code:
<?php
$theAmount = $_REQUEST['amount'];
$theCurrency = $_REQUEST['currency'];
?>
<meta http-equiv="refresh" content="4;URL=http://www.mysite.com/tracked.php?amount=$theAmount">
The currency can be in two values, either GBP or USD.
How can I ensure that $theAmount gets set to half the passed value if currency = USD, but is not altered if it is currency = GBP?
Thanks,
Jon