Form validation, who is first
Created by: Dr.Ferrous
For a form validation,should the PHP script go first,then the HTML,or vice versa,or maybe its the same either way?
by Rabson J Phiri
Validating the form using
PHP will give you the same result.
But who should do the task and who is first? here comes the important part,
always use both (
PHP) to validate your forms.
PHP validation as a plan b and it can't be hacked.
But why using both languages and not just
Because you must take care of your site's traffic, sending the form from the browser to the server each time the user clicks on "submit" and doing the validation methods will take too much traffic on your site.
But doing the validation methods using
So, use both languages,