What should be good way to redirect user after successful action like edit or delete any item, in delete condition we could use $_SERVER[ HTTP_REFERER ]
but in case of edit, we show first of all edit form and then user clicks update, so if we use same approach user would be redirected to edit page not main page. I hope you got idea about my confusion. thanks.
I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...