View Full Version : submit buttons without JS?
I have a submit button in my site for the feedback form. I noticed yesterday that if I switch off JS, that it doesn;t work any longer. surely there is an alternative which doenst need JS? I lkooked at the buttons here, in this site, and they seem to be coded just like mine.
Now I know you'll say to me that there's a big lump of JS there. I know but, I have that for people who have JS on (the majority), to check their entry. I shall remove it when I put together the perl snippet which can replace that.
However, whether the user has JS on or not, I still want them to be able to submit the form.
08-23-2005, 01:05 PM
Would it work if you made it a submit button?
08-23-2005, 01:59 PM
08-23-2005, 02:02 PM
He said "I shall remove it when I put together the perl snippet which can replace that."
08-23-2005, 02:06 PM
You should validate form with Perl ...
because the validation works good and keeps the visitor on the
client side until the form is complete.
How about using the <noscript> tag, where you have both lines ...
something like this (but I didn't test it out):
<noscript><input type="submit" value="Submit"></noscript>
Or, enclose a complete separate <form> within <noscript> ...
spot on mark87 :) and thanks all.
I'll try the submit/button thing mark as I had missed that earlier.
Blimey Max, that sounds like a duplication :( . I dislike that concept so I'd better put together a perl thing in the next day or so - before I forget - as I start to add more to this 'project'
08-23-2005, 06:41 PM
Yeah, it'd probably be better to just devote all your time and energy into the new perl script instead of having a mediating step in the process. Didn't catch that that was what you were up to. I still prefer PHP for all of this sort of stuff myself though.
PHP for President!
Yeh, I'm gonna do the perl checker/validator over the weekend If I have time. But changing the 'button' to 'submit' made it work even if JS is off, though because it is a risk that was previously exploited, I shall leave it as is until I get the perl done.
Come to think of it... Thats why I had it that way. If the sender wasn;t going to tell me who they were, my site wasn;t going to let them send the form.
And to think it seems like it was someone who knows me, who exploited it before..
Thwack and double thwack!! :p
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.