Jump to content

can anyone help me with this please?


artisan

Recommended Posts

Hey,

 

i recently decided to code an extreamly simple php cms which i can use on any websites i make. so far i have made an input form, a procesing page, a flat file, and an index with an explode function which shows the last 5 posts newest to oldest.

 

all of it works up to a point. the problem i have come accross is that when you fill in the message part of the form if you press enter to give a new paragraph it creates a new line on the flat file which the script then thinks is a new line of arrays which makes each new paragraph a new post adding it above its proper post...

 

you can see my script work in progress here.

www.xaoss.com/cms

 

i wonder if its possible to somehow stop the line break in the textarea counting as one in the flatfile.... or even better if i can replace it with a < br> tag so it shows as a new paragraph.

 

any help please?

many thanks

Link to comment
https://forums.phpfreaks.com/topic/46619-can-anyone-help-me-with-this-please/
Share on other sites

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.