By default, usercake form registration field returned to empty when one or more inputs has wrong value. This is terrible when someone registered and failed. He must fill field from beginning.

In register.php you got this

//Forms posted
    $errors = array();
    $email = trim($_POST["email"]);
    $username = trim($_POST["username"]);
    $displayname = trim($_POST["displayname"]);
    $password = trim($_POST["password"]);
    $confirm_pass = trim($_POST["passwordc"]);
    $captcha = md5($_POST["captcha"]);

now, i added this error reporting to handle error.

error_reporting(E_ALL ^ E_NOTICE); 

next, i added this on input value:

<?php echo $something; ?>

finally, code like this:

<input id="username" type="text" name="username" value="<?php echo $username; ?>" />
<input type="text" name="displayname" value="<?php echo $displayname; ?>" />
<input type="text" name="email" value="<?php echo $email; ?> " />


You may also like
Check User Availability Using AJAX on Usercake Registration