hi rod.jeff
I am having trouble understanding the
problem, but I will try to help.
It appears you have typed in User.php and register.php
I assume you have the other functions done?
lib/db.php
lib/functions.php which has the random_text() function
public_files/img/captcha.php
templates/template-page.php
What is in the php.error.log file?
Try putting some print statements in register.php
Here are some key places to put them. page 14
about 30 lines down.
Code:
// otherwise process incoming data
else
{
Put a print statement after this to see if you are getting to
this block of code.
There is a section of code in register.php that tests 4
conditions. All these conditions have to be met before
you can get to the section where you save the user.
Code:
// add the record if all input validates
if (User::validateUsername($_POST['username']) && $password &&
User::validateEmailAddr($_POST['email']) && $captcha)
Before this statement, print out each of those 4 values separately.
If any of them are not set then you need to work on getting those set.
Often times it is the captcha that gives people trouble.
In register.php the statement that saves the record to the
database is on page 15 about 11 lines down
Code:
$token = $user->setInactive();
The setInactive function calls the save function.
Both the setInactive function and save function are in User.php.
Put in a print statement and see if you are getting to
this part of the code.
It is hard to tell what the problem is.
These are just general troubleshooting ideas to get more
information on the problem.
I hope this helps.