RE: [PHP] Help: Suggestions for multi page form validation
| From: | Stuart Felenstein | Date: | Tue, 19 Oct 2004 09:26:17 +0000 |
| Subject: | RE: [PHP] Help: Suggestions for multi page form validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199791@lists.php.net to get a copy of this message | ||
If it's okay I'll throw out two more questions then.
1-Probably a silly question, but is a "faux pas" if I
don't do client side [javascript] validations ?
2a- Textboxes - provided I'm not allowing special
characters (only alphanumeric) does this alone protect
me from things like "sql injections" ?
2b- Do selects (menus, dropdowns) need to be validated
for string content. aka, can crafty hackers turn
these into a way to enter some funky data ?
Thank you ,
Stuart
--- Graham Cossey <graham@cossey.plus.com> wrote:
> Personally I would do as you suggest in 1. I would
> think your users would
> get rather annoyed if they had gone through several
> form pages to be told at
> the end of an error in form page1.
>
> So, page2 validates page1 etc. I would assume that
> page2 already does some
> processing of page1 anyway, as I believe you are
> adding the for.........