ferret219 Posted June 29, 2007 Share Posted June 29, 2007 My first PHP project is a very simple blog system and I have a page which lists blog entries. This page provides a link to the edit page, when clicked opens the edit page and inserts the values from the database into the from. My problem is that it puts in a large gap of two tabs and two spaces the start of the from. The challenging thing is that if I slick submit, the gap is not put into the post. Any help please? Chris Link to comment https://forums.phpfreaks.com/topic/57766-large-gap-when-editing-text-from-database/ Share on other sites More sharing options...
pocobueno1388 Posted June 29, 2007 Share Posted June 29, 2007 So your wanting the gap to go away, correct? Try using the trim() function before putting it into the database, if it still does it, try using the trim function when displaying the info. This could be an HTML problem though, it's hard to tell when we don't have any code to look at. Could you post it? Link to comment https://forums.phpfreaks.com/topic/57766-large-gap-when-editing-text-from-database/#findComment-286030 Share on other sites More sharing options...
chocopi Posted June 29, 2007 Share Posted June 29, 2007 it could also be if you are using nl2br() to display it ~ Chocopi Link to comment https://forums.phpfreaks.com/topic/57766-large-gap-when-editing-text-from-database/#findComment-286040 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.