Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Multiple Forms Example

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
Isidor128
Smarty Regular


Joined: 27 Jul 2004
Posts: 35
Location: France

PostPosted: Tue Jul 27, 2004 11:13 am    Post subject: Multiple Forms Example Reply with quote

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 Sad

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP