I have a user registration form. If someone enters a name like O'Brien, then it turns up on the next page (having been POSTed) as O'\Brien. So I use stripslashes() to remove the slash and it displays fine. So far so good.
Then I POST the details again to the next page which writes the details to the database. Except now it's just O - I presume the single quote has been taken as some kind of delimiter or something and the rest of the string has disappeared. I guess I could wait until that final page before applying stripslashes (just before writing to the database) but that means the slash still appears on the intermediate page (which is there to show people what they've entered and get them to confirm it's okay). What can I do? Is there a way of printing O'\Brien to the screen that doesn't show the slash? Appreciate your comments. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php