Wordpress Themes - US Business Directory - Find jobs - Lyrics - French Property

PDA

View Full Version : Entering a variable in the VALUE field


lost
Dec 6th 2005, 6:01 am
how can i place a variable in the value field.
For example, if i had the following

<INPUT TYPE="text" NAME="partno" VALUE="">


i need to place a variable in the VALUE = "" section. Placing a literal string will work, however if i try to insert $var like this, it doesn't work:

<INPUT TYPE="text" NAME="partno" VALUE="$var">


can someone help please

vectorgraphx
Dec 6th 2005, 10:06 am
try:

<?php
print "<INPUT TYPE='text' NAME='partno' VALUE='$var'>"
?>