PDA

View Full Version : PHP Browser plugin detection - how to pass JS vars to PHP?



pablo 2006
May 21st, 2008, 06:33 PM
I'm using this script provided by Apple (http://developer.apple.com/internet/webcontent/examples/detectallplugins.shtml) to detect if browser plugins are available and what the plugin description is (version number etc). I need to pass the final vars to a php file on a test server.

1) I've tweaked the script to return navigator.plugins.description in FF, but can't get the description part to show for IE, any idea how to do this with JS or VB?

2) Do activeX contols have a description? if so, how are they accessed?

3) Assuming I can get all the above data assigned to a single JS var, how can I pass this var to an external PHP file for DB storage?

Any suitable links / help would be appreciated,

Thanks for reading,
Pablo

djheru
May 21st, 2008, 09:48 PM
The easiest way would be to take the information and structure it into a query string, and then have a php file use the $_GET superglobals array to get the information. You could also POST the data and then use the $_POST superglobal.