Posted by Daniel Tryba on 06/25/05 02:16
peebrain <pb@anon.com> wrote:
> There must be a way to do the error checking before the submit. The
> only way I can think to do this is with Javascript and a button
> element onclick event (instead of Submit button) with the Javascript
> handling the form validation and form submit. There is probably a real
> obvious PHP solution but I can't see it.
It's very obvious that there is _NO_ way to validate with PHP before
submitting it since PHP is serverside and to get the data from
clientside to serverside it has to be submitted (one way or the other).
Validation needs to be done serverside always, any checks clientside are
a bonus but are not to be relied on.
Navigation:
[Reply to this message]
|