|
Posted by Manuel Lemos on 10/17/21 11:20
Hello,
on 07/03/2005 03:23 PM SAndrejev@gmail.com said the following:
> I'm new to web programming but i think that you can make a function,
> somthing like print_content($error) which will be printed if you open
> the page for the first time or if validation didn't pass(then you will
> probably would like to pass #error variable)
That is the way this forms validation and generation works. You post the
form to the same page where it is presented. If it was submitted the
class can validate the form values. If there is an invalid field, the
form may be presented again with information about the invalid fields.
http://www.phpclasses.org/formsgeneration
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Navigation:
[Reply to this message]
|