Welcome Guest, Not a member yet? Register   Sign In
Help with User Registration Function?
#2

[eluser]GSV Sleeper Service[/eluser]
a blank page often means that you've got some whitespace after the closing PHP tag, most of the time the closing tag is not necessary, leave it out to avoid potential problems.

I can't see register_player() being called anywhere, the sensible place to call it would be here
Code:
if ($this->form_validation->run() == FALSE)
{
  $this->load->view('register');
}
else
{
  //register the user
  $this->register_player();
  //show the form success
  redirect('form/success/');
}
if you do go this route you'll need to remove the redirect() from register_player() and replace it with a return.
you're almost there with the username_check() callback, if you're checking for duplicate usernames you'll have to perform the relevant query, at the moment you're selecting ALL the usernames from the player table


Messages In This Thread
Help with User Registration Function? - by El Forum - 07-02-2010, 06:31 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 07:30 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 08:00 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 11:47 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 12:22 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 12:23 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 02:46 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 02:51 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 04:20 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 06:36 PM
Help with User Registration Function? - by El Forum - 07-03-2010, 03:29 AM
Help with User Registration Function? - by El Forum - 07-03-2010, 06:29 AM
Help with User Registration Function? - by El Forum - 07-04-2010, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB