When you define $First_Name and $Last_Name (which variable names, by the way, go against PHP convention such as it is). You can use a helper array:
Code:
$v = array_map('mysql_real_escape_string', $_POST);
I know the former programmer tried stripslashes() somewhere regarding a similar problem and it didn't prevent error messages when there was an apostrophe. I thought stripslashes was for if you inserted slashes before special characters and then had to remove them prior to display
Sometimes, depending on server config, they're inserted automatically where you don't want them, and mess things up.
Bookmarks