jQuery + form submit = php session lost (need Help)
Hello
i'm a jQuery new user, and i'm not aware of complex coding =P
but i succeed to make it work by reading/copying the demo code.
I'm using an Ajax based site, with a main page loading content in DIV...
As long as i use jQuery for a form which is not in a php session i had no problem.
But since i'm in a php session, once i submit the form, there is a 'kind of refresh' which close the session and users have to log back.
here is how my form looks like (it's a basic adaptation of the demo code) :
-
<div id="changePassContainer">
<form method="post" action="">
...
<input type="submit" id="submit_changepwd" name="ChangePassWord" value="Ok" />
</form>
</div>
<?php
code which should treat the posted variables, but recieve nothing due to refresh/disconnection.
?>
more details/clues :
- all my inported pages in DIV starts with a session_start();
- in action form , if redirect to a new div the session is not lost, but posted variable are lost
- in action form , if redirect to a new page the session is not lost, and i get the variables.
thanks for your help.