Check javascript status

Discussion in 'JavaScript' started by madura99, Oct 8, 2007.

  1. #1
    Hi friends,

    I'm developing a web site using php/mysql (www.lankacarsale.com) and I want to validate all user inputs from client side using javascripts without using server side validation. And want to print a message in html format if user has disabled javascript in the browser. ;)

    I jst want to knw what kinda function available in PHP to check javascript status in client browser :confused:

    or do you have any idea except server side validation :D

    same time give your ideas to improve the value of my site (if you have time :cool: )
     
    madura99, Oct 8, 2007 IP
  2. ezpz

    ezpz Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To know if javascript is enabled, you could use javascript to set the value of a hidden field.

    To print a message if javascript is disabled, just include
    <noscript><p>Please enable javascript to use this form.</p></noscript>
     
    ezpz, Oct 9, 2007 IP