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?
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
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.