Using single quotes, Flash PHP mySQL

Hi,
I am a little confused about sending text from Flash to PHP (and then to mySQL) and then back again, and using quotes. What happens now is that double quotes (") don’t give any problem, but single quotes (’) do.

I can avoid this by adding a backslash () before a single quote.

But I wonder if this can be done dynamically. In other words. I wouldn’t wanna say to the users of a simple CMS that I am building, that they should add those backslashes themselves.

I have a submit button, which could hold a code saying something like:
“If you press this, add a backslash before each single quote that’s in the input textfield”.

Or is it something I could change in the PHP script? I read something about stripslashes, but I wouldn’t know how to use it, and that seems to deal more with double quotes issues.

Anyway,

thanks!

Jerryj.