jamesxg1 Posted January 30, 2009 Share Posted January 30, 2009 well i know you can display mysql data in a textarea but does anyone know how to display it in a textbox ?, i have tryed these: <?php echo $VAR ?> <?php print $VAR ?> and value="$var" But nothing any ideas ? Link to comment https://forums.phpfreaks.com/topic/143142-solved-displaying-mysql-data-in-a-textbox/ Share on other sites More sharing options...
rhodesa Posted January 30, 2009 Share Posted January 30, 2009 <input type="text" name="foobar" value="<?php echo htmlspecialchars($var); ?>" /> Link to comment https://forums.phpfreaks.com/topic/143142-solved-displaying-mysql-data-in-a-textbox/#findComment-750715 Share on other sites More sharing options...
jamesxg1 Posted January 30, 2009 Author Share Posted January 30, 2009 <input type="text" name="foobar" value="<?php echo htmlspecialchars($var); ?>" /> Cheerz mate. Link to comment https://forums.phpfreaks.com/topic/143142-solved-displaying-mysql-data-in-a-textbox/#findComment-750718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.