You could make the form invisible using css: #theFormId { display: none; }
then use Javascript to change this to display = block. If they don't have Javascript the form won't appear. Or you could use Javascript to write the form out, as in: <script> document.write('<form>'); </script> but the CSS version is much cleaner. And yes, you should also make sure you check the data on the server side, otherwise something nasty is bound to happen. Best regards, Graham. gabor wrote: > hi, > > what is the standard way to only show a form if the user has > javascript-enabled? > > i have a form which's "integrity" relies on some javascript stuff, > so i really don't want the user to submit it with javascript-disabled. > > so is there a way to only show some part of the webpage (or the whole > webpage) if javascript is enabled? > > i know about <noscript> but i need the opposite :) > > > p.s: for all who want to send me a reply that i shouldn't rely on client > side validation. i know :) > > gabor > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---