Should be like wearing a gogles for the experts. I have a simple HTML form that is sending data to an email address via php. However if there are names like Neil'o Brien the php form fails. This is because of the apostrophe in the name. How do I handle this?
the problem is in your php script . try to change ' to " . or just put your script it , i will try to find the problem .
If you do stripslashes you'll lose the apostrophe. You don't want that I guess. Use addslashes , this will give you Neil\'o. When you need to display the data, use stripslashes.