...

View Full Version : JavaScript to MySQL with PHP ?



kaisellgren
09-02-2006, 12:21 PM
Hi,

I have a JS code that checks the visitors screen resolution. I would like to insert the screen resolution details into a MySQL database with PHP's mysql_query(); command. How do I do that? Any ideas?

Thanks

Fumigator
09-02-2006, 04:18 PM
Just load up the values into hidden input fields, or stuff them into a url (like www.site.com?x=800&y=600), then you are off and running. If you are wondering how PHP deals with form elements, read this link.

http://www.php.net/manual/en/tutorial.forms.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum