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
passing Javascript var to PHP
Moderator: General Moderators
-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am