English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

preventing double sumbit in PHP.

2007-03-26 09:41:44 · 1 answers · asked by WAW 1 in Computers & Internet Programming & Design

1 answers

A classic problem.
The best answer is to redirect the user to another page on submit....

OR

After you are done with the post var you could reset it to null and before processing the post value check that it is not null.

Just a thought - something like,

foreach ($_POST as $val)
{
unset($_POST[$val]);
}

2007-03-26 10:04:38 · answer #1 · answered by Nicholas J 7 · 0 0

fedest.com, questions and answers