PDA

View Full Version : trying to embed a field into html


joeydood
09-30-2003, 06:27 PM
guys, i've posted the details of my little ninny problem here:
http://www.vbulletin.com/forum/showthread.php?p=539095#post539095

for those not interested in the other thread on the .com, here's the skinny...

i'm trying to feed the user's location into the 'value' field of an html form for submission to another site.

this is what i have in the template:
< INPUT TYPE="hidden" NAME="p" VALUE="$posts[field2]" size=21 >

this is the source of the output html:
< INPUT TYPE="hidden" NAME="p" VALUE="" size=21 >

what did i do wrong?

assassingod
09-30-2003, 06:30 PM
Its $post[field2] not $posts[field2]

Also, thats bad XHTML, use:

<input type="hidden" name="p" value="$post[field2]" size="21">


AND, on most pages, $post[fieldx] isn't defined so it wont work

joeydood
09-30-2003, 06:30 PM
Omg I Am Such A Friggin Moron.

is there an icon to hang you head in public shame?
professional coder? ha!!! i laugh at myself.