Re: [PHP] strlen ?

[email protected] (Stephen)
Newsgroups php.general
Message-ID <[email protected]>
On 13-07-05 02:50 PM, Jim Giner wrote:
>
> Now the question is - how the heck did I put that in there? Certainly 
> not intentionally.  The data is captured from a d/e screen I wrote and 
> it simply grabs the post value and inserts a new record with that 
> value along with some other values.  And I don't see anything 
> concatenating a LF to my string.
>
Is this a browser being used for input? Never assume what a browser will do.

It is good practice to validate and condition data before inserting into 
a database.

Consider trimming the data before doing the INSERT.

-- 
Stephen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.