You are here: Re: server side form validation - update form fields « PHP Programming Language « IT news, forums, messages
Re: server side form validation - update form fields

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация