[eluser]bidur[/eluser]
Hi all,
I got a solution to the above problem.
I am posting my solution, so that I can get feedback whether I am doing it correctly or not.
Again, it might help some newbies like me in some way..
After inserting data in the database. I added this line to the end of the
function entry_insert()
Code:
function entry_insert()
{
//code to insert data to database
redirect('/Email_controller/email');
exit;
}
This solved two of my problems:
1. Clearing the user submitted values from the form after the data is inserted into the database.
(as i have stated in the last post in this thread)
2. After the user submitted data is entered into the database, it used to get re-entered into the database
each time I hit the refresh button. Now, this problem is also solved.
Thank You