Welcome Guest, Not a member yet? Register   Sign In
Form validation in same page / url
#2

[eluser]Pintossauro[/eluser]
Maybe this is confusing. I'll try to simplify:

Basically I access a URL like <b>index.php/4/tasks/add</b> by a link with the <b> href="/4/tasks/add">Add task</b> that calls the Add function in the Task controller passing the project id as argument (due to the definition in routes.php). When a user submits a new task, if the <b>validation in insert_task() method</b> fails, i wanted to show the same URL <b>index.php/4/tasks/add</b> with the input errors but if i just load the same view in my validation function (<b>$this->load->view(task/add)</b>) the URL will be <b>index.php/task/insert_task</b> and not the <b>index.php/4/tasks/add</b> that i want.

This is just a matter of the "aspect" of the URL because the application works perfectly.

Any ideas?


Messages In This Thread
Form validation in same page / url - by El Forum - 03-05-2010, 06:17 AM
Form validation in same page / url - by El Forum - 03-05-2010, 08:12 AM
Form validation in same page / url - by El Forum - 03-05-2010, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB