Jump to content

Large gap when editing text from database


ferret219

Recommended Posts

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

 

 

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.