My ajax works fine in firefox but it does not work on my iPhone. I thought it might have been the XMLHttpRequest but that doesn't seem to be the issue. I am for sure it's not my php script. Sorry that I didn't post it earlier. It was really hard to post on iPhone, especially since I can't scroll down to highlight all the code
Here is my submit:
<form action="#" onsubmit="function()">
<input type="text" value="" />
<input type="submit" value="Submit" />
</form>