Validating a form submission
17 January 2009
No Comment
If you want to validate a form and you have to check if all variables are set you have to keep a few things in mind:
a) If you disable a input field so users can only see the content you will not be able to fetch the value via $_POST
disabled=”disabled” if you add this to a input field and you submit the form you won’t be able to fetch it via $_POST
Instead use readonly=”true”
b) Textareas are slightly different. You will first have to strip all slashes if you want to fetch the real value of it.
Like our posts? Then subscribe via Mail:
Similar Posts:
- The URL does not appear to reference a valid XML file…
- Wordpress password-protected page
- HowTo print array values
- Wordpress: Default Custom Fields
- Initial SQL Connection Slow
Socialize:
|
|











Leave your response!