Validating checkboxes with php
For a single checkbox, ensure that if a value is supplied, it's the correct one.
The website is: anyone can have a look and give me an example of how to change the php to process the checkboxes when submitted, I will be very grateful cheers! Basically the site has a custom build CMS (I'm learning). If it is then add a class called .active to that li item only. any help would be great thank you, Code: [Select]$subnav = new Data Conn; //connection to database with my classes file$subnav-since many do not know the term sticky = when a form is submitted, the data contained is not deleted but instead last checked data will be shown.
Code: [Select]$result = mysql_query("SELECT * FROM course") or die(mysql_error()); if ($result) Help needed purely on php codes. I have been battling on my dynamic checkboxes in such a way that if none is checked the form is return, also I need to retain what was checked when the form postback due to other invalid inputs.