Forum Moderators: coopster

Message Too Old, No Replies

maintain a variable between php script and a sub ajax script

sharing variables in ajax and php

         

sneaks

6:09 am on Nov 12, 2007 (gmt 0)

10+ Year Member



i have a php function that when invoked requires a particular variable's state (0 or 1) it works fine when the function is called by the containing application, but when invoked by ajax, iam using jquery .ajax() , the variable is not available. i have tried a cookie which also is always zero.

thanks and take care!
jd

PHP_Chimp

7:26 pm on Nov 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ajax will most likely be making a get request. So is your code set up to use a get request for that variable?