At 11:54 AM 6/25/2009, Bob Xiong wrote:
I'm still struggling with the 'project' select list. I tried to place
<tmpl_var name="project"> at various spots but none worked.
# attempt 1 that didn't work
<select name="project">
<option value="project_1">Project 1</option><tmpl_var
name="project">
<option value="project_2">Project 2</option><tmpl_var
name="project">
<option value="project_3">Project 3</option><tmpl_var
name="project">
</select>
The magic word you are looking for is "selected". You need to add
the "selected" attribute to one of the options. It's been several
years since I worked with this, but I think I did it something like
this:
<select name="project">
<option value="project_1" <tmpl_if
name"project_1">selected</tmpl_if>>Project 1</option>
<option value="project_2" <tmpl_if
name"project_1">selected</tmpl_if>>Project 2</option>
<option value="project_3" <tmpl_if
name"project_1">selected</tmpl_if>>Project 3</option>
</select>
and then you use $t->param() to set project_1, project_2, or
project_3 to true as appropriate.
--
Greg Marr
[email protected]
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm