[eluser]RS71[/eluser]
Hrmm
I'm not sure if this would work correctly or even if it would suit your needs but:
If you were to log an user in, maybe you can have a hidden input set to 0 by default. If JavaScript is enabled, you'd have it change the value to 1 or something on pageload. So when the form is submitted you can set a session variable to tell if that user has Javascript on.
Not sure if this would work as well but:
Sort of the same idea but maybe you can have the link leading to the form set to "form/add/" by default and have JavaScript change it to "form/add/js/" on pageload.
Or maybe have AJAX in the background go to a page that sets a 'javascript' session variable to 1 or something.
Not sure if any of these work and all would need to be set before the form page but... who knows heh
I'm not too familiar with JavaScript so I can't be of much help.
Good luck mate,
RS71