This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Submit Once
Started 10 years ago by jpetersen | 7 posts |
-
Hello,
We are having problems with some clients who use the forms with a low-bandwith conection.
Is it possible to disable the submit button after submitting.
Now we get between 1 and 100 submits from 1 client.
Something like this: http://tympanus.net/Development/ProgressButtonStyles/ (fill horizontal)If so where can I change this and how.
Kind regardsJarno
Posted 10 years ago # -
I am having the same issue - multiple submits from various forms. The problem is not consistent and I'm not sure about the bandwidth issue.
Posted 10 years ago # -
We have intergrated a submit once "script", so when you click on the button it will be grayed out and NOT clickable.
And still we have multiple submits from some users. Not that much anymore but max 10!
Any help would be much appreciated.Jarno
Posted 10 years ago # -
I have the same issue, is there a way to do this?
Posted 10 years ago # -
PHP is a server-sided language, which means that you won't be able to control the user's browser (I.E. The back button).
My suggestion would be to put a big warning on the site asking the customer to not use the back button (or the order will be refused - something like that).
Your submit once script should work for most people but a lot of other people are impatient and will not wait for their connection to catch up with the request. I guess that's the price of doing business. Not much you can do about it.
I'll go through some stuff I have laying around and see if there is anything that can be done, but don't count on it.
Regards,
Saghalie
http://www.kcmhosting.comPosted 10 years ago # -
I found this (not sure if it will be what you want - although it works for me):
<script> count=0; function valSub(){ count++; return ((count>1)?false:true); } </script> <form action="<?=$GLOBALS['PHP_SELF']?>" method="post" onSubmit="return valSub();"> <input type="submit"value="Submit"> </form>
Regards,
Saghalie
http://www.kcmhosting.comPosted 10 years ago # -
Can someone explain exactly how to implement this with a MachForm? We are having the same issue on simple forms... sometimes 2 or 3 entries from the same person. I like the idea of the "grayed out" or even something that would say "please wait" while it was submitting.
Posted 10 years ago #
Reply
You must log in to post.