From: Rob H. <for...@us...> - 2002-11-05 21:12:09
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv27037/templates Modified Files: vcs.html Log Message: oh yeah, that's how you pass an array through a template, using a template loop. when $cgi->param() finds multiple keys in an incoming url ( or HTTP POST ), it puts then together into an array. Index: vcs.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/vcs.html,v retrieving revision 1.2 retrieving revision 1.3 diff -U2 -r1.2 -r1.3 --- vcs.html 5 Nov 2002 08:45:31 -0000 1.2 +++ vcs.html 5 Nov 2002 21:12:05 -0000 1.3 @@ -8,5 +8,7 @@ <br> <input type="text" name="filename" name="vcs_password"> - + <TMPL_LOOP NAME="FILENAME_LOOP"> + <input type="hidden" name="filename" value="<TMPL_VAR NAME=FILENAME>"> + </TMPL_LOOP> <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>"> <input type="hidden" name="filename" value="<TMPL_VAR NAME=FILENAME>"> |