05-27-2008, 03:29 AM
[eluser]MrSmith[/eluser]
I create the form view (called mainpage.php) to input data from users and insert to database (When load this page the URL is http://localhost/index.php/). After I pass the data to controller (method postdata) - the url is http://localhost/index.php/postdata, I want to load mainpage view again. The url should be http://localhost/index.php/ but it is not change so if I refresh this webpage in this state it will insert old data from last input to database again. Please help me how to correct them...T_T
I create the form view (called mainpage.php) to input data from users and insert to database (When load this page the URL is http://localhost/index.php/). After I pass the data to controller (method postdata) - the url is http://localhost/index.php/postdata, I want to load mainpage view again. The url should be http://localhost/index.php/ but it is not change so if I refresh this webpage in this state it will insert old data from last input to database again. Please help me how to correct them...T_T