Home › Forums › Back End › PHP form validation example. Secure or not secure? › Re: PHP form validation example. Secure or not secure?
December 6, 2011 at 7:55 pm
#92045
standuncan
Member
@rolf, in most circumstances I think that makes sense so you can deliver a specific error for what is wrong in each case. In this specific situation I do not have room for descriptions, so every error is an asterisk. I was just thinking it may save some load/parse time to condense the validation?
I am thinking of coming up with a different naming solution for all my forms and then I can stick with it and never get confused. I don’t care about renaming, because in the mail function I can have:
$body = "Name: $random1 n";
$body .= "Email: $random2 n";
or
$emailbody = "Name: {$random1}
Email Address: {$random2}
";
depending on how you set your mail function up.