Hi,
basically I'm passing menu (pulldown) selections from an html page through to a php page with a script which will then use the selections made to query a mySQL database. The selections that come through to the script are picked up with the $_POST and passed into a variable $whatever
The below code is an example of what I have (all working) so far:
======
<?php
//get answers form selections and hold them in variables
$selection1 = $POST['selection1'];
$selection2 = $POST['selection2'];
$selection3 = $_POST['selection3'];
//put all incoming selections into an array
$arr = Array(1=>$selection1, $selection2, $selection3);
for ($i = 0; $i < count($arr); $i++){
echo " $arr[$i] \n";
}
?>
If I haven't explained this well please let me know. In essence I'm creating a system for selecting a product from various questions answered by the user then the system matches the answers (selections) from the user to the data held in the database.
Thanks very much.