Code: Select all
echo "<input type = 'text' name = 'changeName' value = '$r['customername']'>";I'm hoping to put the text from a DB entry into a text field.
Regards,
Moderator: General Moderators
Code: Select all
echo "<input type = 'text' name = 'changeName' value = '$r['customername']'>";Find the answer yourself: http://be2.php.net/string (Hint: Have a look at the complex/curly syntax examples).impulse() wrote:Code: Select all
echo "<input type = 'text' name = 'changeName' value = '$r['customername']'>";
Code: Select all
echo '<input type="text" name="changeName" value="'. $r['customername'] .'">';