Good morning -
I'm trying to get a text field with line returns in it to be stored,
retrieved, and displayed the way it gets entered.
Specifically, my users use a form field (html textarea) to enter some
remarksas they enter their remarks, they can hit Enter to insert a hard
return, which
The function you need is called nl2br:
http://us2.php.net/nl2br
-Jordan
On Jan 6, 2006, at 5:34 AM, swoll2 wrote:
Good morning -
I'm trying to get a text field with line returns in it to be stored,
retrieved, and displayed the way it gets entered.
Specifically, my users use a form field (h
At 03:48 06/01/2006, you wrote:
Date: Thu, 5 Jan 2006 22:48:24 -0500 (EST)
From: Peter Beckman <[EMAIL PROTECTED]>
To: John Meyer <[EMAIL PROTECTED]>
cc: php-db@lists.php.net
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Subject: Re: [
This is an HTML issue (not PHP or MySQL) that is HTML ignores
carriage returns (and most other white spaces).
There are two simple solutions:
use tags:
echo " $rmks";
Or replace the \n with ""
$newRmks = str_replace ( "\n", "", $rmks );
echo $newRmks;
You can do this going into or
"Peter Beckman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So I'm thinking about how to save credit card numbers in the DB, for
> re-charging cards for subscriptions, new orders, etc.
>
> I'm also thinking about how to save passwords in the DB, not plaintext,
> but
> not one-wa
Damn, Bob copied me...or me him...i forget, but that was the essence of what
I was attempting to let the OP know...when dealing with security you can
never be paranoid enough
Bastien
From: "Neil Smith [MVP, Digital media]" <[EMAIL PROTECTED]>
To: php-db@lists.php.net
CC: [EMAIL PROTECTED]
S
Yes yes, lawsuits, scary, etc.
I'm glad you're so blase about this and the threat of your business
going under due to exposure to extortion. When you've got the site
running, let me know the address, so I can advise my friends and
colleagues to avoid it at any cost.
Public key encryp
Peter wrote:
> So I'm thinking about how to save credit card numbers in the DB, for
> re-charging cards for subscriptions, new orders, etc.
> I'm also thinking about how to save passwords in the DB, not plaintext, but
> not one-way encrypted either.
> Any suggestions? How would I secure the datab
On Fri, 6 Jan 2006, Neil Smith [MVP, Digital media] wrote:
Peter Beckman wrote:
So I'm thinking about how to save credit card numbers in the DB, for
re-charging cards for subscriptions, new orders, etc.
Yes yes, lawsuits, scary, etc.
I'm glad you're so blase about this and the threat of your
On Fri, 6 Jan 2006, Dan Baker wrote:
"Peter Beckman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
So I'm thinking about how to save credit card numbers in the DB, for
re-charging cards for subscriptions, new orders, etc.
I'm also thinking about how to save passwords in the DB, n
10 matches
Mail list logo