Re: PHP using Forms
| From: | Zak Greant | Date: | Fri, 04 May 2001 14:14:15 +0000 |
| Subject: | Re: PHP using Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51417@lists.php.net to get a copy of this message | ||
Use the nl2br() function
--zak
----- Original Message -----
From: "Mike Mike" <hatchman2000@yahoo.com>
To: <php-general@lists.php.net>
Sent: Friday, May 04, 2001 8:11 AM
Subject: [PHP] PHP using Forms
> Hello,
> I have a form field <TEXTAREA name="Home" ROWS=10
> COLS=40><? echo $Home ?></TEXTAREA>
> with this data in it:
>
> My Home
> 11 North 5th St
> St. Paul MN
> Phone: (555) 555-5555
> Fax: (555) 555-5555
> E-Mail: hatchman2000@yahoo.com
>
> When submited it goes into a mysql database. The
> problem i'm running into is that the output looks like
> this after the call from the mysql database to html:
>
> My Home 11 North 5th St St. Paul MN Phone: (555)
> 555-5555 Fax: (555) 555-5555 E-Mail:
> hatchman2000@yahoo.com.
>
> How do I get it to print out with line breaks like how
> I have typed it into the form?
> Thank you
> --Mike
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>