passing Javascript var to PHP
Posted: Thu Nov 21, 2002 2:35 pm
in java script, i am getting the cookie that was deposited by another script. If i find the cookie, i parse it to extract the "Access Level" from it. I am having difficulties in passing this value (Access Level) to the next PHP page even when i do the following:
tempvar="<input type=hidden name=mode value=" + AccessLevel + ">";
document.write(tempvar);
When i go to the next php page and try to access the variable mode, I get an error.
Thanks
quan
tempvar="<input type=hidden name=mode value=" + AccessLevel + ">";
document.write(tempvar);
When i go to the next php page and try to access the variable mode, I get an error.
Thanks
quan