Form submit help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form submit help (/showthread.php?tid=47042) |
Form submit help - El Forum - 11-24-2011 [eluser]Unknown[/eluser] I have a form in one of my view files and I have a function that handle the form data but how do I get that function to run when the form is submitted? I tried to use the header function as shown below but that returned an error because the headers had already been sent Code: header("Location: index.php/products/search/" . $_POST['searchCat'] . "/" . $_POST['searchString'] . "/"); Does anyone know the best way to access a controller function from a view? Thanks |