HI all,
I have a form. There is a text box for the name of race 1.
Within the processing code, I address the passed value like this. I am trying to remove single quotes:
str_replace("'", "",$_POST['Race1_Name'])
The sent value is this: race one's here
And here is what is returned: race one\s here
I do not need a slash to replace a quote. I desire the quote to be removed. The str_replace I have set up I would think just removes the quote, but apparantly not.
Can anyone explain what is happening, and tell me how to just get rid of the quote without gaining the slash?
Thanks,
KB
I have a form. There is a text box for the name of race 1.
Within the processing code, I address the passed value like this. I am trying to remove single quotes:
str_replace("'", "",$_POST['Race1_Name'])
The sent value is this: race one's here
And here is what is returned: race one\s here
I do not need a slash to replace a quote. I desire the quote to be removed. The str_replace I have set up I would think just removes the quote, but apparantly not.
Can anyone explain what is happening, and tell me how to just get rid of the quote without gaining the slash?
Thanks,
KB