Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Location
    Finland, Hollola
    Posts
    285
    Thanks
    8
    Thanked 0 Times in 0 Posts

    JavaScript to MySQL with PHP ?

    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
    PHP 5 & MySQL 5 (Y)

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    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.

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •