CodeIgniter Forums
fields - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: fields (/thread-5184.html)



fields - El Forum - 01-10-2008

[eluser]-spy-[/eluser]
sorry guys for this question, im just a beginner in web and in PHP, but right now im improving, im saving my data from fields to database, and i don't want those fields, to remember the data, just for security..hope you can help me with this..tnx


fields - El Forum - 01-10-2008

[eluser]adamp1[/eluser]
Do you mean after the user has clicked 'Submit' the form still has the values in it?

OR

Do you mean after the user has clicked 'Submit' they can refresh the page and it will submit again?

If you mean the first one then the fields are only being re-populated because you told them to. My advice would be not to send them back to the form once they have submited.

If you mean the second, then the solution is rather more complex. Have a look at this post http://ellislab.com/forums/viewthread/67835/

I don't know if anyone has any better ideas for this one, its a difficult issue to solve.