Hi guys,
I'v got a bit of a problem, from what I can see everything is ok. But when I try and create an instance of a class it doesn't do anything.
The below code is ment to check all details and then process it i.e. store the user in the db. but it fails at $reg = new register($username, $password);
The code:
PHP Code:
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$confirmPassword = $_POST['confirmPassword'];
// CHECK IF ALL DETAILS HAVE BEEN PROVIDED
if (!$username) {
errorMessage('Missing username', 'Please enter a username.');
include('templates/registration_form.php');
}
else if (!$password) {
errorMessage('Missing password', 'Please enter a password.');
include('templates/registration_form.php');
}
e
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --