How to do a "smart form" functionality?
| From: | Jimmy Harlindong | Date: | Mon, 16 Jul 2001 05:53:43 +0000 |
| Subject: | How to do a "smart form" functionality? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1163@lists.php.net to get a copy of this message | ||
Hi,
Is there something out there that can help doing a "smart" form
functionality coupled with Smarty for its layout?
e.g. (hypothetical)
$form = new SmartForm;
$form->AddText('username');
$form->AddPassword('password');
if ($form->Submitted() && $form->Verified()) {
// add form data to the database
} else {
// the form will redisplay the inputs, marking the errors with red or
something
$form->AssignToSmarty($smarty, 'form_area');
}
$smarty->display('form.tpl');
Would be a great timesaver.
Also, I am looking for some form text editor that looks like a "rich
text" editor with toolbars e.g. bold, italic, heading1, list, etc. So
user can enter rich text into their message.
Any hint where to look for that?
BTW I just upgraded 1.3.2 -> 1.4.3 I am very impressed with the new
additions!
Thanks
Jimmy