Posted by Sanders Kaufman on 09/21/07 13:45
"dirk" <dirkheld@gmail.com> wrote in message
news:1190379849.212298.204860@d55g2000hsg.googlegroups.com...
> Hi,
>
> Being new coding in phpI have a question concerning server side form
> validation.
>
> In a php script I check if a form is correctly filled in. Now I want
> that the
> page containing the forms is represented agian so that the user can
> fill in a
> correct value. The other forms that a correctly filled in should be
> showed
> agian.
>
> On the moment when a user fills in a wrong value they get a different
> page
> with a message...some that isn't tha usable. I want to represent the
> orginal
> form again.
It looks like what you need is client-side validation - for that instant
mistake prompt, ya know.
You'll want something in ECMA Script the for element's onclick event like:
if (this.text == "hello wrold") { msgbox("Misspelled 'world'.";}
Navigation:
[Reply to this message]
|