one way is by generating a unique "key" before submission or POSTing. then on the receiving end, check if that key already exist; if not, continue on submitting, but if it already exist, cancel POST.
some programmers use clients' IP address as the key; some creates primary keys if they are dealing with database entries.
goodluck!