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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -