Re: Spaces
| From: | Stephen | Date: | Mon, 09 Dec 2002 22:01:49 +0000 |
| Subject: | Re: Spaces | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127560@lists.php.net to get a copy of this message | ||
So would I just do this?
$text = str_replace(" ", " ", $_POST['input']);
----- Original Message -----
From: "Andrew Brampton" <andrew@bramp.freeserve.co.uk>
To: "Stephen" <webmaster@melchior.us>; <php-general@lists.php.net>
Sent: Monday, December 09, 2002 4:30 PM
Subject: Re: [PHP] Spaces
replace more than 1 space in a row with a
OR, when outputing their text place a <pre> tag around it
Andrew
----- Original Message -----
From: Stephen
To: PHP List
Sent: Monday, December 09, 2002 9:25 PM
Subject: [PHP] Spaces
I have a article submission thing where the user types in whatever they
want. I've already made it so that when the user pushes enter, it saves it
as a <br> for HTML but how would I do this for spaces also? I'm storing the
contents in a MySQL database...
Thanks,
Stephen Craton
http://www.melchior.us
"What is a dreamer that cannot persevere?" -- http://www.melchior.us
----------------------------------------------------------------------------
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php