Storing Java Script Varable into php variable
| From: | Mike Mike | Date: | Fri, 20 Jul 2001 15:34:10 +0000 |
| Subject: | Storing Java Script Varable into php variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58923@lists.php.net to get a copy of this message | ||
Hello,
I look through the php-general list database but could
not find the answer.
My question is I have some java script I want to store
the java script variable into a php variable so I can
submit it into a database. Here is the Java sript
code.
<--
function show(){
if (!document.all&&!document.layers)
return
document.t.t1.value=screen.width
document.t.t2.value=screen.height
document.t.t3.value=screen.colorDepth
document.t.t4.value=screen.pixelDepth
}
show()
-->
Now What I want to do is take whats stored in
document.t.t1.value=screen.width
and put it into $screen Like <? $screen =
"document.t.t1.value=screen.width";
How do I do this?
Thank you for your help.
--Mike
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/