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! Quote 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"> Quote 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']).'">'; Quote Link to comment https://forums.phpfreaks.com/topic/149205-escaping-characters/#findComment-783563 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.