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

(This post was last modified: 04-13-2016, 01:16 PM by Wouter60.)

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.
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 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