I would suggest using HTML::FillInForms to provide the sticky fields that you
are after.  It will simplify your templates, and save you lots of headaches.

http://search.cpan.org/author/TJMATHER/HTML-FillInForm-1.02/lib/HTML/FillInForm.pm

Cheers,

Cees


Quoting Wojciech Pietron <[EMAIL PROTECTED]>:

> Hi,
> 
> I have a form that collects info about books' authors. 
> There is a popup menu idicating the number of authors 
> and dynamic number of text fields for the authors' names.
> 
> Here you are (simplified example):
> 
> <-- how many authors -->
> <select name="nr_of_authors" onChange=submit()>
> <option  value="1">1</option>
> <option  value="2" selected>2</option>
> <option  value="3">3</option>
> </select>
> 
> <-- create fields for authors -->
> <form>
> <input type="text" name="author_1" value=""><br>
> <input type="text" name="author_2" value=""><br>
> <form>
> 
> This is a part of authors.tmpl:
> <TMPL_LOOP NAME="aut_loop">
>     <input type="text" name=author_<TMPL_VAR NAME="__counter__">
> value="?"><br>
> </TMPL_LOOP>
> 
> Does anybody know how I can make that formy sticky and take advantage of
> associate function? What should I put in the place of question mark? It
> looks like <TMPL_VAR NAME="author_<TMPL_VAR NAME="__counter__">"> does not
> work.
> 
> Thank you in advance.
> Wojciech Pietroń
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to