php - Detecting if javascript is enabled with hidden form field -


it may seem repeat question, have not found appropriate answer in hundreds of answers detecting whether or not javascript enabled. home page have form requires zip code entered. if entered zip code in more 1 county, visitor returned page select state, , county. if have js enabled can provide them nice dynamic dependent drop-down menu of counties once select state. without js have return page county options. home page doesn't need js. there way use hidden field in zip code entry form let next page know if js enabled?

create hidden field in form contains zipcode , fill on homepage js. once form send can check if field empty indicate js not enabled , render result page accordingly.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -