Re: Text formatting

2003-09-28 Thread delz
Hi Tony, Thanks a lot. That solved my problem. Regards, Delz - Original Message - From: "Tony Thomas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 12:40 PM Subject: Re: Text formatting > That's because the browser doesn&

Re: Text formatting

2003-09-28 Thread Dan Nelson
In the last episode (Sep 29), delz said: > I'm using mysql and php but I'm having problems printing my output > using a browser. It's like this, i have a form and it has a text area > that has the following contents: > > Hello World. > Hello World. > Hello World. > > What happens is when I output

Re: Text formatting

2003-09-28 Thread Tony Thomas
On Sunday, September 28, 2003, at 11:40 PM, Tony Thomas wrote: nl4br(); will insert a tag after every new line so your browser can display it correctly. Ahem. I mean nl2br();

Re: Text formatting

2003-09-28 Thread Tony Thomas
That's because the browser doesn't read the line breaks without a tag at the end. All you need to do is this: echo nl2br($textarea); ?> nl4br(); will insert a tag after every new line so your browser can display it correctly. On Sunday, September 28, 2003, at 11:07 PM, delz wrote: Hi All

Re: Text formatting of articles pulled from database??

2003-03-19 Thread Henning Heil
Landy Atkinson wrote on 19.03.2003 18:14 ... echo "$article"; The text displays, but the paragraph breaks are gone and all the text is just run together into one long paragraph. Any suggestions on how to get $article to display and keep the white space between paragraphs that it ha

Re: Text formatting of articles pulled from database??

2003-03-19 Thread Stefan Hinz
Landy, > echo "$article"; > The text displays, but the paragraph breaks are gone and all the text > is just run together into one long paragraph. In PHP, you can use nl2br(), like: echo "".nl2br($article).""; This will replace "\n" (the new-line character that makes that line break in TEXTARE

RE: text formatting

2002-06-30 Thread Peter Lovatt
--- > -Original Message- > From: Blue Presley [mailto:[EMAIL PROTECTED]] > Sent: 01 July 2002 02:33 > To: [EMAIL PROTECTED] > Subject: Re: text formatting > > > Thanks guys, nl2br works perfectly for preserving my new lines! I've > checked over the php s

Re: text formatting

2002-06-30 Thread Blue Presley
m: "Gurhan Ozen" <[EMAIL PROTECTED]> To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 7:35 PM Subject: Re: text formatting > Hi, > Yes there are number of functions you can use in php. I don't know what you >

Re: text formatting

2002-06-30 Thread Gurhan Ozen
al/en/ref.strings.php http://www.php.net/manual/en/ref.regex.php Gurhan - Original Message - From: "Blue Presley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 6:31 PM Subject: Re: text formatting > I'm using (and new to) PHP. any sugge

RE: text formatting

2002-06-30 Thread Peter Lovatt
tware --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -Original Message- > From: Blue Presley [mailto:[EMAIL PROTECTED]] > Sent: 30 June 2002 23:31 > To: [EMAIL PROTECTED] > Subject: Re: text

Re: text formatting

2002-06-30 Thread Blue Presley
ROTECTED]> Sent: Sunday, June 30, 2002 6:02 PM Subject: Re: text formatting > This should be handled before the data is even inserted into mysql. Have > your scripting language that you use in the form handle this to have the > resume formatted in the way you'd lik

Re: text formatting

2002-06-30 Thread Gurhan Ozen
This should be handled before the data is even inserted into mysql. Have your scripting language that you use in the form handle this to have the resume formatted in the way you'd like and then have it insert the data into mysql. Gurhan - Original Message - From: "Blue Presley" <[EMAIL PR

Re: Text formatting for HTML output.

2001-10-04 Thread Christopher R. Jones
I define my textareas like this (perl cgi scritps): $portdesc Note the WRAP="SOFT" flag I then simply insert the users information into the mysql table and when it is called up in the HTML form, it retains its carriage returns. You do need to ensure that quotes are handled correctly. >Current

Re: Text formatting for HTML output.

2001-10-04 Thread Ian Barwick
On Thursday 04 October 2001 06:48, Neil Silvester wrote: > Currently I am using a standard field for information > input to the MySQL database. When I display the allready information in the > text fields to allow the user to manipulte the information, the formatting > includes any carrige return