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 ? Quote 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); ?>" /> Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.