Re: [PHP] formatting form input
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 Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] formatting form input
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
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 into excel, or view it with an editor, the user entered tabs & linebreaks are being interpreted as field separators and record separators. How do I format the input to solve this problem? Thanks! -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php