Can anyone tell me how to pass on variables to a next file.
It's just the $price,and $name that i need to pass on. These variables are related to choice made by the the user. He/she also fills in a value of a number (which will become $amount in the next file) from a textfield embedded in "pure" html (not in a php section). The "pure" html variable is no problem with the post method. but how can i pass on the existing variables.
I thought that the following would work but it doesn't seem to do that:
<?
$fields = "price name";
foreach (explode(' ', $fields) AS $key => $val) {
print '<input type="hidden" name="'.$val.'" value="'.$$val.'">';
}
?>