Re: [PHP] how to access javascipt variables in PHP

2002-07-18 Thread Police Trainee
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

[PHP] how to access javascipt variables in PHP

2002-07-17 Thread Seppo Laukkanen
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,

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread 1LT John W. Holmes
... - 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 browsers width and height, but they are stored

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Martin Clifford
You can blend the two... sort of. script language=javascript !-- hide me function checkWidth() { var width = screen.width; var height = screen.height; document.location = filename.php?width= + width + height= + height; } //-- /script body onload=checkWidth(); I'm not aware of any

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Chris Garaffa
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.