diff options
author | ivan <ivan> | 2004-09-05 23:21:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-09-05 23:21:44 +0000 |
commit | 89aa808693d199a28e04e5cef360282a3ea668f6 (patch) | |
tree | 217b81f2647a5216bddcca9e39cae136f2730476 | |
parent | 7598902376bff0ddeba07ef9eb973f64efe87ad5 (diff) |
fixed duplicate checking will catch it, but add client-side protection against double-submission also.
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index f9c80d82d..4a8f70540 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -71,7 +71,7 @@ print header("Customer $action", '', ' onUnload="myclose()"'); print qq!<FONT SIZE="+1" COLOR="#ff0000">Error: !, $error, "</FONT>" if $error; -print qq!<FORM ACTION="${p1}process/cust_main.cgi" METHOD=POST NAME="form1">!, +print qq!<FORM ACTION="${p1}process/cust_main.cgi" METHOD=POST NAME="form1" onSubmit="document.form1.submit.disabled=true">!, qq!<INPUT TYPE="hidden" NAME="custnum" VALUE="$custnum">!, qq!Customer # !, ( $custnum ? "<B>$custnum</B>" : " (NEW)" ), @@ -564,7 +564,7 @@ END my $otaker = $cust_main->otaker; print qq!<INPUT TYPE="hidden" NAME="otaker" VALUE="$otaker">!, - qq!<BR><INPUT TYPE="submit" VALUE="!, + qq!<BR><INPUT NAME="submit" TYPE="submit" VALUE="!, $custnum ? "Apply Changes" : "Add Customer", qq!">!, "</FORM></BODY></HTML>", ; |