have you noticed that when you have a php webform the form add / slashes to some characters, for example on qoutes and apostrophe before them.

well to overcome this you can use these functions, it will remove the slash that are added:

trim(stripslashes($_POST['somedata']))

you can see more on this post:

another-way-to-use-mysql-real-escape-string-instead-trimstripslashes