RE: [PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Matt Hillebrand
Check out addslashes() and stripslahes(). Also, when you're populating name fields using values from the database, try using htmlspecialchars(). I found that to be very useful. Matt |-Original Message- |From: Herhuth, Ron [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, February 12, 2003 7:2

RE: [PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Nichols, Mark A.
Try using the addslashes function. Magic Quotes may need to be turned on in the php.ini file, but I'm not sure. $newloginname=addslashes($loginname); This should allow for the apostrophe in the variable. -Original Message- From: Herhuth, Ron [mailto:[EMAIL PROTECTED]] Sent: Wednes