# Browser plugin detection - how to pass JS vars to PHP?

**URL:** <https://forum.kirupa.com/t/browser-plugin-detection-how-to-pass-js-vars-to-php/260994>\
**Category:** programming\
**Created:** [May 21, 2008, 9:33pm UTC](https://forum.kirupa.com/t/browser-plugin-detection-how-to-pass-js-vars-to-php/260994 "2008-05-21T21:33:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo\_2006](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@pablo\_2006](https://forum.kirupa.com/u/pablo_2006)\
**Post date:** [May 21, 2008, 9:33pm UTC](https://forum.kirupa.com/t/browser-plugin-detection-how-to-pass-js-vars-to-php/260994/1 "2008-05-21T21:33:44Z")

</div>

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 [COLOR=Blue]navigator.plugins.description [/COLOR]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

---

<div class="post-metadata">

**Author:** ![djheru](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/djheru/32/3190_2.png) [@djheru](https://forum.kirupa.com/u/djheru)\
**Post date:** [May 22, 2008, 12:48am UTC](https://forum.kirupa.com/t/browser-plugin-detection-how-to-pass-js-vars-to-php/260994/2 "2008-05-22T00:48:19Z")

</div>

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.
