Welcome Guest, Not a member yet? Register   Sign In
use redirect or load
#1

[eluser]SamoualSys[/eluser]
i have form after the form is insert to the database which is the best method use redirect or load view
#2

[eluser]Samus[/eluser]
redirect, imo.

Simply because POST data still exists after submitting a form, so if a user accidently clicked refresh of f5 or something, they'd be resubmitting data they've already submitted.
#3

[eluser]SamoualSys[/eluser]
thanks ...
i have notice that when i checked my database i found that i have the same record 27 time i was clicking refresh to see some error .
can i ask if you know how to pass variable from another controller to the same view
#4

[eluser]Samus[/eluser]
[quote author="SamoualSys" date="1333657100"]thanks ...
i have notice that when i checked my database i found that i have the same record 27 time i was clicking refresh to see some error .
can i ask if you know how to pass variable from another controller to the same view [/quote]
not sure what you mean, example?




Theme © iAndrew 2016 - Forum software by © MyBB