Re: [SMARTY] SmartyValidate and multi-page forms
| From: | Davy Obdam | Date: | Sat, 09 Apr 2005 08:28:15 +0000 |
| Subject: | Re: [SMARTY] SmartyValidate and multi-page forms | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12440@lists.php.net to get a copy of this message | ||
Hi Donald,
Thanks for your suggestion, i`ll have a look at HTML_QuickForm_Controller. Stil for now i would like to know how to make a multi-page form using ONLY Smarty and SmartyValidate. I am gonna try both method and see what works best. Does anyone has a simple example how to accomplish this?
I have read about
SmartyValidator::set_page('1')
And in the template {validate id="foo" page="1" ... message="fooError"}
But i dont see how this works, i stil get both forms on 1 page?
Best regards,
Davy
Donald A. Lobo wrote:
u might want to try using HTML_QuickForm_Controller. it does exactly what u want, and has good integration with smarty :) lobo On Apr 8, 2005, at 4:20 PM, Davy Obdam wrote:-- Davy Obdam mailto:info@davyobdam.com web: http://www.davyobdam.com "So tell me, just how long have you had this feeling that no one is watching you?" (Christopher Locke: Entropy Gradient Reversals)Hello, I am using Smarty 2.6.9 and SmartyValidate 2.4.0. I would like to make a multi-page registration form. When the user submits the first step (and no errors are found) he need to go to step 2 etc etc.. and in the end i would like to have all the formdata in a session. I have been looking in the documentation and on the forum, but i cant find any good examples. Does anyone has a good example of how to accomplish this or know a good tuturial on SmartyValidate and multi-page forms? Best regards, Davy -- Davy Obdam mailto:info@davyobdam.com web: http://www.davyobdam.com "This seems like a case where we need to shoot the messenger." (Charlie Kaufman on Cypherpunks list) -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php