*fixed email - problem with password
Posted: Fri Jun 11, 2004 2:03 pm
problem with email was i had 2 field names with email. so if one didnt had a value.. the error was returned dumb lol.
However i have this problem. (might be that i am stairing at it to long )
When i start up the page..
i get this error
However i have this problem. (might be that i am stairing at it to long )
When i start up the page..
i get this error
When both passwords field is blank and i do a submit i get this error
Notice: Undefined variable: password_confirm_emtpy in on line 318
When only the first or the second password left blank all erros are goneNotice: Undefined index: password_confirm in on line 49
Notice: Undefined index: password_confirm in on line 314
Code: Select all
//part that check if password is 0 and if password is same as the second password
if(strlen($_POST['password'])>0)
{
$password = '1';
}
else
{
$password_empty ='<font style="color: '.$tcolour.'; font-size:'.$tfontsize.'px;">* Enter a password</font>';
}
// line 50
if ($_POST['password'] == $_POST['password_confirm'])
{
$password_confirm = '1';
}
else
{
$password_confirm_emtpy ='<font style="color: '.$tcolour.'; font-size:'.$tfontsize.'px;">* you''re password must match</font>';
}Code: Select all
if($password_confirm == '1')
{
//line 314
echo '<td class="row1"><span class="gen">Confirm password: * </span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="'.$_POST['password_confirm'].'" /></td>';
}
elseif($password_confirm != '1')
{
echo '<td class="row1"><span class="gen">Confirm password: * </span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 200px" name="password_check" size="25" maxlength="32" value="" />'.$password_confirm_emtpy.'</td>';
}