I have a form where a user can eter their name. Then I do $user_name = addslashes($_POST['user_name']); Then I input this data into the db. On another page I retreive the value as: stripslashes($usr->username) .
If the name is something like O'Connor everything looks ok until I want to put this as a values into a text field, but it only outputs as O. Here's how my form code looks like:
<input type=text name='user_name' value='".stripslashes($usr->username)."'>
Kind of weird...