You are here: Re: self-validating form « PHP Programming Language « IT news, forums, messages
Re: self-validating form

Posted by Andy Hassall on 07/03/06 19:03

On 3 Jul 2006 11:59:27 -0700, "Mark" <mnbayazit@gmail.com> wrote:

>so after much searching, and thinking, and pondering and planning, i
>came up with this most amazing thing, and then realized one major flaw
>which i was hoping you guys might help me overcome.
>
>it creates a pretty little form, with labels and names and id's for
>styling to your heart's content, and better yet, you can add a "minimum
>length" parameter, and when you hit submit it'll spit out a little
>error if you screwed something up.
>
>sample viewable here: http://xailus.com/files/form_sample.gif
>
>now this is very nice and all, but it occured to me that if a user does
>actually manage to fill in a simple form.. it won't be until after the
>form re-rendered that I will be able to determine that there were no
>errors, since it does the error checking and form-creation at the same
>time.
>
>any ideas how I might fix this problem without overcomplicating my
>handy-dandy system?

You might want to look at the approach taken by HTML_QuickForm:

http://pear.php.net/manual/en/package.html.html-quickform.tutorial.php

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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