storing data picked up from php file in jquery -
i have php file runs simple jquery script:
var text = $(".hide").text();
i wondering how store data when redirect other pages
you put a cookie. write it, leave page, read own cookie when next page.
or post php script, , store in session variable. in jquery, this
$.post("my_other_script.php", { text: "my piece of text"} );
my_other_script.php be
<?php $_session['text'] = $_post['text']; ?>
here jquery page documentation it.
Comments
Post a Comment