how can i get a txt box to take a value of a variable??
<input type=text value="<?php print "$variable_name";?>">
or
echo "<input type=text value=$variable_name>";
To avoid grief in the future, make sure you use quotes where required:
<input type="text" value="<?php echo $variable_name?>">
Yeah, sorry, my mistake...
Originally posted by piersk Yeah, sorry, my mistake...
Shame on you... 😉 😃
... and make sure that quotes in your variable don't break the html, maybe?
<input type="text" value="<?php print addslashes($variable_name); ?>">
🙁 What is this, pick on Piers day? sob Cant a guy make one or two or three mistakes...