• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.