one method that i have found works for me (albeit not
so pretty, neat, or concise) is to pass js variables
through a url request. Ok follow me for a little if
you will (it's bulky, but it works!)
1) user loads a page (e.g.
your-domain.com/index.phtml)
that page contains the javascript which deter
I can't think of a way to do it in the page itself... Unfortunately (there
could be a way, I just can't think of it - frazzled after a day of work),
but if you're using forms on your page, then set the values of some hidden
form elements to the JS variables you want to use, and pass them along. Yo
You can blend the two... sort of.
I'm not aware of any PHP vars that hold screen information.
HTH
Martin
olmes...
- Original Message -
From: "Seppo Laukkanen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 3:06 PM
Subject: [PHP] how to access javascipt variables in PHP
> Can anybody help?
>
> I have javascript code to find out brows
Can anybody help?
I have javascript code to find out browsers width and height, but they
are stored in javascript variables. How can I access them from PHP? Or
is there a method to do same in PHP straightly?
Thanks,
Seppo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
5 matches
Mail list logo