MissJane Posted March 13, 2009 Share Posted March 13, 2009 Hi, I have a product name in my database stored as: Monitor 7" However, if I want to edit this product, the product name displays as: Monitor 7 I think I have to escape the character? How do I go about displaying the stored data as is into a pre-filled input text box? Cheers! Link to comment https://forums.phpfreaks.com/topic/149205-escaping-characters/ Share on other sites More sharing options...
ram4nd Posted March 13, 2009 Share Posted March 13, 2009 To display into input text box as pre-filled. You just have to put your sting in value attribute. <INPUT type="textbox" value="This will be displayd"> Link to comment https://forums.phpfreaks.com/topic/149205-escaping-characters/#findComment-783538 Share on other sites More sharing options...
The Little Guy Posted March 13, 2009 Share Posted March 13, 2009 Use htmlentities echo '<input type="textbox" value="'.htmlentities($row['columnName']).'">'; Link to comment https://forums.phpfreaks.com/topic/149205-escaping-characters/#findComment-783563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.