Posted by peebrain on 06/25/05 02:31
Daniel Tryba wrote:
> peebrain <pb@anon.com> wrote:
>
>>There must be a way to do the error checking before the submit. The
>
>
> 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.
>
Thanx for the prompt response Daniel. Ok, that makes sense of course. So
clearly I can do some client-side validation with JavaScript but should
also being doing it on the server-side. My problem though is if form
validation fails on "page 2.php" (where the form data was submitted and
the validation performed), how do I return the user to "page1.php" to
try again?
Navigation:
[Reply to this message]
|