diff options
| author | ivan <ivan> | 2004-09-05 23:21:45 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2004-09-05 23:21:45 +0000 | 
| commit | 8228e2c17bc79e4abe7c753c0469c40cff3c5edd (patch) | |
| tree | cda1e74215954546f8dfe44e88aea60f5759ff66 /httemplate/edit | |
| parent | b2d7d072fb14d5aaf7eaccd42c89bbf21f177795 (diff) | |
fixed duplicate checking will catch it, but add client-side protection against double-submission also.
Diffstat (limited to 'httemplate/edit')
| -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 fc825af75..d3da7cc0a 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)" ), @@ -551,7 +551,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>",  ; | 
