javascript - Post redirect Get on same page PHP -


this old issue , have consulted many questions on before posting this

how prevent form resubmission when page refreshed via php

post/redirect/get on same page firefox

preventing form resubmission

and many other.

i have small app , structure this

index.php (acting controller)  viewsfolder(contains html)  models(contain db insertion etc) 

when user lands on index.php show him required view suppose

require_once(views/signin.php) 

user submits form on index.php, signin.php posts data index.php?signin=true. call required function models , make redirect itself. avoid form re-submission.

apparently in chrome , in firefox still able resubmit form , click on button of browser go previous page. destroys whole business logic.

i assume redirection should here n't know can use ajax avoid of that, cant without ajax. don't think every mvc based cms using ajax on backend.

is wrong me architecture ?


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -