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&
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
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();
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
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
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
---
> -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
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
>
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
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
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
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
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
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
14 matches
Mail list logo