As far as I know, exit() is simply a way to end the script and return a number or a string (it it is given one as an argument). It is identical to die().
I think it depends on how the rest of your script is written and where exit() is placed, but it is harmless and (in your case, it seems) neccessary if you want to keep the user from entering something twice. You could pass the string: 'Please don't click that button twice, you'll wear it out.' to the exit() function (it's actually not a function - it's a language construct) if you wanted to be more informative. (personally I think plain vanilla text warnings are ugly, but...)