Hello!
i am currently setting up several forms, one of which is a radio style and selection box. I would like to save the selection and use it to interact with a mySQL database. Here is a sample of what I have
This is a radio button test : <br>
<input type="radio" name="query5" value="selection_1 "> Selection 1
// a PHP function
connectToDB( $mySQLHost, $mySQLUser, $mySQLPass, $mySQL_DB );
----------- end code snippet
What I have done is to use the reserved variable $HTTP_GET_VARS["query5"]; to store the value.
The trouble is that I will have at least 4 forms, and I want to avoid doing somthing like
$HTTP_GET_VARS["query1"]
$HTTP_GET_VARS["query2"]
$HTTP_GET_VARS["query3"]
etc
So I have two questions. The first is how do I use a loop to pick off each variable? The second is how do I clear the values of the php page. Ive noticed that my previous values seemed to linger at the URL location bar.
Thanks In Advance for you help