Hi everybody!
Please,help!
My problem is as following:
in a file XXX1.php we have a form with checkboxes:
{
echo '<form action ="XXX2.php" method= "post">
What you are looking for: <br />
<p><input type="checkbox" name = "wordprop[]" value ="Option1" >Option1<br/>
<p><input type="checkbox" name = "wordprop[]" value ="Option2" >Option2<br/>
<p><input type="checkbox" name = "wordprop[]" value ="Option3" >Option3<br/>
<input type= "submit" name ="s" value="Submit">
</form>';
}
What I whould like to have is:
After user presses the button <Submit>, the results should be processed in file XXX2.php. The program should:
1.check which checkboxes were chosen
2.then connect to the database and retrieve the stored values from the database
3.display the values
I can connect to the database, the problem is how to verify which checkboxes were chosen and then query the database.