Welcome Guest, Not a member yet? Register   Sign In
How to avoid $_POST resending data?
#2

[eluser]LuckyFella73[/eluser]
In case you want to show the user some details he just submitted
in a form, using sessions (native or CI-session) would be nessesary
or recommended.

You could add the db insert-id info as an url segment and start a query at
the redirect-page but that would open your database as you could
just edit the url segment containing the id and get infos about all your
other db entries!

You also could build the redirect url depending on the submitted data
but that could become "fiddly" (don't know if you can use this
word - I just googled to find a similar world I would use in my
language). If it's just a small set of data it would be ok this way.

But I would prefer using sessions.


Messages In This Thread
How to avoid $_POST resending data? - by El Forum - 10-09-2008, 09:43 PM
How to avoid $_POST resending data? - by El Forum - 10-10-2008, 07:10 AM
How to avoid $_POST resending data? - by El Forum - 10-13-2008, 10:53 PM
How to avoid $_POST resending data? - by El Forum - 10-13-2008, 11:20 PM
How to avoid $_POST resending data? - by El Forum - 10-13-2008, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB