Click to See Complete Forum and Search --> : One hit submit buttons for forms?
jumpthattb
08-01-2007, 08:56 PM
Hello. Is there any way to have a submit button allowed to submit once? I am having a problem with people submitting the form over and over because they think it didn't go through.
The page already goes to a "thank you" page but I guess if their computer doesn't move fast enough they keep clicking the submit button.
Thanks in advance!
Mel;)
ray326
08-01-2007, 09:30 PM
You could disable it in an onsubmit handler.
jumpthattb
08-01-2007, 09:45 PM
action="submit"
onsubmit="return false;">
??
I guess I wouldn't know what to do here?
ray326
08-01-2007, 10:28 PM
I'd say ask in the Javascript forum.
• MaNiC MoE •
08-03-2007, 09:32 AM
I'd say ask in the Javascript forum.
yeah! I agree
Ferret
08-03-2007, 01:10 PM
<input type="submit" onclick="this.disabled=true;">
There you go.
• MaNiC MoE •
08-03-2007, 02:12 PM
<input type="submit" onclick="this.disabled=true;">
There you go.
thx, I needed that! :)
jumpthattb
08-03-2007, 06:34 PM
Thanks everyone!
I did ask on the Java Script board but I didn't get an answer.:p
Thanks!:D
jumpthattb
08-06-2007, 08:26 PM
Hi again. I put that script in but it disabled my redirect. I tried a couple of options but nothing is working.
Any ideas?
Thanks
Mel
Ferret
08-07-2007, 08:31 AM
Does it still submit the form? I'm not quite sure why that would disable your redirect.
jumpthattb
08-07-2007, 10:03 PM
here's what I have>
<input name="Clear" type="reset" value="Clear">
<input type= "submit" type="submit" value="Submit">
<input type= hidden name="redirect" value="http://www.eldoradotradinggroup.com/resumesent.html">
This is without the new script
This is with the script>
<input name="Clear" type="reset" value="Clear">
<input type="submit" type = "submit" value="Submit" onclick="this.disabled=true;">
<input type= hidden name="redirect" value="http://www.eldoradotradinggroup.com/resumesent.html">
It does not submit the form when I add the disable button script or redirect.
Thanks
Ferret
08-08-2007, 08:20 AM
Hm, that is strange. Instead of using the redirect via the form, perhaps you could work it into the onClick event?