Re: [PHP] formatting form input

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:56 AM, ROBERT MCPEAK wrote: > How do I use PHP to remove certain characters from form input? > Specifically, how to I ensure that form data does not contain any > newline/linebreak or tab characters? you can hack it yourself with str_replace(). Erik

[PHP] formatting form input

2002-04-16 Thread ROBERT MCPEAK
How do I use PHP to remove certain characters from form input? Specifically, how to I ensure that form data does not contain any newline/linebreak or tab characters? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] formatting form input/sql insert

2002-04-16 Thread ROBERT MCPEAK
I'm collecting data with from textarea inputs. The user may enter a linebreak with the return key, or a tab, etc. I then write this data to a mySQL table, formatting the data with addslashes(). I then output the data to a text file using a "select into file" statement. When I import the file i