capslock118 Posted September 18, 2007 Share Posted September 18, 2007 Hello, The subject may be a bit vague. What I want is this. I have a page where I want to update information. So lets say it is already: Title - Milk Category - Dairy postDate - 9/18/2007 And I want to Change it to: Title - Cheese Category - Dairy postDate - 9/18/2007 I want this page to display the information (before it is updated) in the edit field. So right now I have this <input name=title value="<?PHP echo $rows['deal_title'];?>"/> What I am doing here, with the sql information excluded of course, is pull out the title of a row that was selected. the information comes out but not well. One of the many input type "text" boxes are for inputting html links such as http://www.domain.com/ and the title would be used with html code as well (for visual formatting on the web page). What ends up happening is when the information is first pulled from the database to fill in the values, after certain html characters (like > after <font...) the rest of information spills out of the text box and becomes uneditable because of this. Most of the code is also gone even though it is in the database. How do I overcome this? Links to any relevant information would be fine. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/69781-reverse-sending-data-from-value-field/ Share on other sites More sharing options...
GingerRobot Posted September 18, 2007 Share Posted September 18, 2007 If i've understood correctly, then i would imagine it is actually after quotes that you get issues. You'll need to use the htmlentities() function. And you were right. Your title was very vague! Quote Link to comment https://forums.phpfreaks.com/topic/69781-reverse-sending-data-from-value-field/#findComment-350678 Share on other sites More sharing options...
capslock118 Posted September 19, 2007 Author Share Posted September 19, 2007 GingerRobot, Yes that worked perfectly. Thank you for the tip and sorry for the being vague. Quote Link to comment https://forums.phpfreaks.com/topic/69781-reverse-sending-data-from-value-field/#findComment-351340 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.