sc_84 Posted June 1, 2009 Share Posted June 1, 2009 Hi, Thought this was more of a html question than php. I have a form which allows users to enter the height (such as 5' 11"). This goes into the database as 5/' 11/" which is fine. Now when i display the date in a html input box again for editing i first strip the slashes and then echo the value in the text box. However the text box displays 5' 11 (misses off the speech mark). I assume this is because the speech mark is ending the input value="". So if I put 5" 1' the text box displays 5 (stops at speech mark), Is there any way to escape the speech mark so it prints out inside a text box? Link to comment https://forums.phpfreaks.com/topic/160492-solved-displaying-speech-marks-in-html-input-box/ Share on other sites More sharing options...
sc_84 Posted June 1, 2009 Author Share Posted June 1, 2009 solved this one by changing the " into its special entity. So i replaced " with " and it displays in text boxes fine. Link to comment https://forums.phpfreaks.com/topic/160492-solved-displaying-speech-marks-in-html-input-box/#findComment-847048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.