Use a cookie to save a time stamp. If they try to re-submit the form, you'll know and can prevent re-submission.
Time stamp:
($Second,$Minute,$Hour,$Day,$Month,$Year,$WeekDay,$DayOfYear,$IsDST) = localtime(time);
Cookie:
print "Set-Cookie:tstamp=$Second$Minute$Hour$Day$Month$Year...