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
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
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
3 matches
Mail list logo