PDA

View Full Version : HTML template form value


tdavis
08-21-2006, 10:17 PM
If this can be done, then how? I want to load a value into a form field from a template variable. Is that possible? It does not seem so, but I wanted to make sure. The code would look something like this, although this is not correct: <input type="text" name="customer_number" size="20" maxlength="20" class="input"><TMPL_VAR NAME="customernumber">. This will not work because the variable assignment is outside of the input tag. Anyone have an idea how to do this?
Thanks!
-tdavis

FishMonger
08-21-2006, 10:52 PM
<input type="text" name="<TMPL_VAR NAME=customernumber>" size="20" maxlength="20" class="input">

tdavis
08-21-2006, 10:59 PM
Do you mean value="<TMPL_VAR NAME=customernumber>"?

FishMonger
08-21-2006, 11:37 PM
Yes, that is what I meant.

I guess I need to do a better job of proof reading my posts before submitting.

tdavis
08-23-2006, 03:44 AM
Thanks. It works, it just looks funny in GoLive. Do you know anyone that uses GoLive? I am adding the template variables into the source manually, and it sure is tedious. Anyway, thanks!