I’m working on a project. Everything went fine. But on iphone whenever I need to send form data to a script safari shows Download Error and doesn’t go to the script.
form is like:
<form id="xxx" action="xx" method="post">
<input type="hidden" name="id" value="2" />
<input type="submit" />
</form>
and the script is like:
<?php
if($_POST ['id'])
{
addToCart ($_POST ['id']);
redirect ('cart');
}
there is nothing else in the form or script. But in iPhone 4s safari show Download error on form submit
anyone faced this before? is it iPhone bug or my script? or any way to fix this (cause I’ve seen other sites are sending form data without problem on iPhone) ?
Fixed, actually the session was creating problem. Cause cookie was creating this issue over AT&T network on iOS due to automatic disconnect. Putting the session in Database solved this issue.