Welcome Guest, Not a member yet? Register   Sign In
Refreshing re-enters the data in the db again and again. Help?
#1

[eluser]liesbetweenyoureyes[/eluser]
So as the title says, my code in registration works but if I refreshed the success page it just input to the database again. What good implementation can I do so this wont happen.

In PHP I usually do this:

Code:
header('Location: register.php?success');

and put a getter somewhere in the page and if the success in the url it wont do it again.

But in codeigniter, I can comprehend how:

Code:
$data['main_content'] = 'signup_success.php?success';

I tried putting that above code but obviously it doesnt work and errors

What advice can you guys give?


Messages In This Thread
Refreshing re-enters the data in the db again and again. Help? - by El Forum - 05-29-2012, 04:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB