Also, there's javascript functions that prevent "double clicking", or, you can put a hidden value in the form thats unique and when in your code, check for this value (like select count(*) from table where temp_id = $hidden_value) if you get a return, you can assume that this is a refresh or double post...