PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Im trying to validate my dropdown and I cant get why it wont validate,
the name of the dropdown's posted value is $areaReported. Its not checking to see that the user has anything other that "Select Area" selected and I cant figure out why
I hope I'm not being thick here but it looks like you've got too many tests in there. Am I right in thinking that if $area_reported = "Select Area" and the number is between 1 and 10 then it's valid, and if not then the error message needs to be displayed?
The code that does what I'm describing looks like this: