Symbols are killing my flash

I have a problem with a form that I’ve built.

I have an input text box with var = strAddress.

When a button is pressed, strAddress is uploaded into my database and then the scene is changed…


strqual = Random(1000000000);
loadVariablesNum("[http://www4.yontrack.com/hospice/test.asp","0","POST](http://www4.yontrack.com/hospice/test.asp)");
gotoAndPlay("confirm","confirmthis");

In the new scene I use a loadVariables to get some info from the database.

loadVariables("http://www4.yontrack.com/hospice/getdetails4.asp?theQual=" + strQual,"_root");
//loadVariables("[http://www4.yontrack.com/hospice/getdetails4.asp?theQual=847823273","_root](http://www4.yontrack.com/hospice/getdetails4.asp?theQual=847823273)");
stop();
if (EOF=="true") {
  gotoAndPlay("confirm","nextOne");
} else {gotoAndPlay("confirm","confirmThis");
}

My problem is if I put a ’ in my address box eg O’Malley street. My loadvariables will not work. If there is no ’ , then it works fine. I’ve tried to add…

strAddress = strAddress.split("'").join("-");CODE]
 
but nothing seems to work.
 
Any advice?