I've got this script that collects information from a postgres database. I need to pass the values(cod) of the product choosen by the user into another webpage, and later insert in into another table. I think I'll need to use $_SESSION or $_POST to pass the values, but I don't know how. Can anyone help me pleeeeeaaaaase???????????!!!!!!!!!!!!!!!!!
//Let's connect to the database
$db = ADONewConnection('postgres');
$db->debug = true;
$db -> PConnect("host=localhost
password=1111") or die("Bum");
$result = pg_query("select Cod,product,flavour, price
Also, you may want to remove that <form> declaration from your for loop. It shouldn't really matter with how you have things written now, but it should be before the loop.
And make sure you're giving the radio buttons the correct name. Buttons with different names are in different button groups. So if you want just one big group, make sure the names are all the same. Then you access the values on 'ice.php' by calling $_POST[$radio_group_name];