Welcome Guest, Not a member yet? Register   Sign In
New issues with form validation
#5

(04-13-2016, 01:13 PM)Wouter60 Wrote: In your controller:
PHP Code:
$this->load->helper('form'); 

In your registration view:
PHP Code:
echo form_open('user/register_user');
//.... lines of code that build your fields; the form helper makes life easy!
echo form_close(); 

Remove this line from your routes.php file:
PHP Code:
$route['user/register'] = 'user/register'
A route is only useful if you want to redirect the given url to another controller/method combination.
tried that previously, am auto loading the form helper alongside the url helper too. but i'll try again and see if it gives a different output
Reply


Messages In This Thread
New issues with form validation - by koficypher - 04-13-2016, 11:37 AM
RE: New issues with form validation - by arma7x - 04-13-2016, 11:59 AM
RE: New issues with form validation - by Wouter60 - 04-13-2016, 01:13 PM
RE: New issues with form validation - by koficypher - 04-13-2016, 01:28 PM
RE: New issues with form validation - by arma7x - 04-13-2016, 01:49 PM
RE: New issues with form validation - by Wouter60 - 04-13-2016, 10:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB