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

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

(04-13-2016, 01:25 PM)koficypher Wrote: it still doesn't work!! The form resets with all values intact except for password and confirm password because I didn't do set_value() on them in the view file. Something very odd happens tho, the set value for username resets and becomes that for last name leaving the username blank and displays an error saying the username is required meanwhile I had previously filled the username before hitting the submit button. The url then becomes http://localhost/busticket/index.php/user/register_user. Really need help!!!

Does 404 problem solve now? You sent request from 'index' to 'user_register'. Remove this from user controller,
PHP Code:
public function index()
 {
 
    $this->register_user();
 } 

And add this line in routes.php
$route['user'] = 'user/register_user';

Or without edit routes.php, replace $this->register_user(); with redirect('user/register_user') in User controller.
Keep calm.
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