#1
  1. Viking
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    Norway
    Posts
    116
    Rep Power
    14

    Determining if the client has javascript enabled and pushing this info to PHP?


    Is it posible to determine if the client has javascript enabled and relaying this information to PHP without using a separate file/loading operation?
    All power to the vikings!
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    111
    I guess you could have a javascript statement that submits a little form (just a single field) when the page loads

    <body onload=submitform()... etc >

    and collect the submission with your php script..

    I guess you would need to use cookies/sessions to match submissions with user sessions etc

    christo
    This is me: http://chris.uk.com
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    464
    Rep Power
    14
    Hi,

    Beside from the <SCRIPT> and <NOSCRIPT> tags which will let you do different things in your code, you could try
    http://phpsniff.sourceforge.net/
    They have a comprehensive browser detection software completely free including the source code (PHP) so that you can change it for your needs.

    If anyone knows of any similar code out there could you let us know?

    Bye ...
    :-)

IMN logo majestic logo threadwatch logo seochat tools logo