timmy0320 Posted February 9, 2008 Share Posted February 9, 2008 Alright, so I have been looking and looking and came across that it's impossible to check if JavaScript is Enabled or not via PHP because it is server-side. What I am trying to do is for my registration page, I have some AJAX on the site (checking username, pw strength, etc.) but I want register.php to do an IF javascript=enabled show registration with ajax ELSE javascript=disabled show registration without AJAX. The only way I have found to come remotely close to this would be to make a module and on every page that links to register.php have a link such as: a href="register.php?pg=nojava" onclick="window.location='register.php';return false;" I do NOT want to do that. Is there a way I can link do my main objective with the IF ELSE instead of creating a module? Because if I do the module I then have to figure out a way to code register.php?pg=nojava to someway say that their java is enabled if they try to remotely access it through the browser. Which brings me back to point A. Get my jist of things? Thanks for any help you can provide. Quote Link to comment Share on other sites More sharing options...
timmy0320 Posted February 9, 2008 Author Share Posted February 9, 2008 Figured this mess out finally. Now I just need to do all the PHP coding in it, we'll see how that goes. But for now, problem solved! I gave up on searching and just played with it on my own. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.