|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Isidor128 Smarty Regular
Joined: 27 Jul 2004 Posts: 35 Location: France
|
Posted: Tue Jul 27, 2004 11:13 am Post subject: Multiple Forms Example |
|
|
Hello
I'm looking for an example where multiples Forms are driven by section
The Section might look like this teh ??? represent where I'l lost with the syntax
Code: |
{section name=idx loop=$onscrit}
<form action="{$smarty.server.PHP_SELF}?tbk={$tabagns}" method="POST" name="form{$smarty.section.idx.iteration}">
<input type="text" name="FamNum{$smarty.section.idx.iteration}" value="{$FamNum???}" size="7" />
{validate field="FamNum???" criteria="isNumber" message="Must be a number"}
<input type="submit" name="act{$smarty.section.idx.iteration}" value="Submit" />
<br />
{/section}
|
I Found the use of SmartyValidate::register_form('Form');
Code: | SmartyValidate::register_form('form1'); | [b]
If there is an example of this I'll appreciate
Regards
Laurent |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|