Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Check that $_post variable exists
I'm new to php/html and all the seemingly endless tecknowlegy that seems to go with it. I have a html form that may or may not have a particular post variable, when checking the submitted form if the element does not exist it throws a error. I need a way to check if it exists without causing any errors. A further example would be:
If the customer database is using region control a select box would fill with the different regions. If they are not, the select box does not apear (there's nothing to list). So how do I tell on the otherside whether a select box $_POST['regions'] exists without throwing an error?
Thanx a million.
0 · ·