redirect to jquery mobile page (html)

i’m currently trying to redirect back to the html (jquery mobile page) from php using header() function in php…

it suppose to be a form in jquery mobile using html..
after submit button is click, the form action to login.php..
after the validation..
i used header() function to redirect to the secure page..
and only loading is shown.. the page wont redirect..

may i know wat is the problem?

below is the php code:

if (mysql_num_rows($  result) == 1) {
// Set username session variable

// Jump to secured page
header("Location: http://mycloud.zymichost.com/cloud.html");
exit;
}

below is the html jquery page:

  <form name="form1" method="get" action="http://mycloud.zymichost.com/login.php" data-ajax="false">
  <span id="sprytextfield1">
  <label for="email">Email</label>
    <input type="text" name="email" id="email">
    <span class="textfieldRequiredMsg">A value is required.</span></span>

    <span id="sprypassword1">
    <label for="password">Password</label>
    <input type="password" name="password" id="password">
    <span class="passwordRequiredMsg">A value is required.</span></span>

    <input name="login" type="submit" data-theme="e" value="Log in">

 </form>

newest questions tagged jquery – Stack Overflow

About Admin