hello, i have a simple question. i have like a number of tectboxes on a page. i want to make sure that all the textboxes are filled when the user clicks on update because i do not want blank data to go in the database. i am using php and mysql. i dont want to use java script. thanks
Set up a condition that if any of the fields are mempty then fail else handle the form.
if (($field1 == "") || ($field2 == "") || ($field3 == "")) { //Handle the failure } else { //Handle the form };
|| (double pipe) is the equivalent of OR
thanks!!worked!