server side form validation - update form fields
am 21.09.2007 15:04:09 von Dirk
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.
Thanks
Re: server side form validation - update form fields
am 21.09.2007 15:39:46 von Erwin Moller
dirk wrote:
> 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.
>
>
> Thanks
>
Dirk,
You multiposted this message in alt.comp.lang.php under the name 'Your
Name Here'.
I answered it in there.
Please do not multipost (posting the same question to multiple groups).
If you must, crosspost (posting to multiple groups AT ONCE).
Reason? If I answer your question in group1, nobody in group2 will know,
and so many people are wasting their time answering the same question in
different groups. OK?
Regards,
Erwin Moller
Re: server side form validation - update form fields
am 21.09.2007 15:42:25 von Paul Lautman
dirk wrote:
> 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.
>
>
> Thanks
There's a web site called http://www.google.com
You may have heard about it.
If you put the words:
server side validation
in the search box, you will find lots of references about how to do exactly
this.
There, now you have a new great tool at your disposal
Re: server side form validation - update form fields
am 21.09.2007 15:45:35 von Bucky Kaufman
"dirk" 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'.";}