I am just tweaking my register script, and ive realised it halts in ie (both 6 and 7), but is fine in ff and opera.
http://munkydesigns.co.uk/ScriptsNew/register.php
thats the page. when you fill in a name, it works ok, as soon as you fill in a password/email, it just halts on checking.
anyone any idea why this is happening?
you can see the .js file here:
http://munkydesigns.co.uk/ScriptsNew/scripts/js/checkregister.js
and the code to check the username is:
as usual, reps for help and all that!
thanks
http://munkydesigns.co.uk/ScriptsNew/register.php
thats the page. when you fill in a name, it works ok, as soon as you fill in a password/email, it just halts on checking.
anyone any idea why this is happening?
you can see the .js file here:
http://munkydesigns.co.uk/ScriptsNew/scripts/js/checkregister.js
and the code to check the username is:
Code:
function checkName($username, $usernameActual = ""){
$u = @strtolower($this->strip($username));
$u2 = @strtolower($this->strip($usernameActual));
$result = @mysql_query("SELECT * FROM users WHERE username = '".$u."' LIMIT 1")or die(mysql_error());
$count = @mysql_num_rows($result);
$r = @mysql_fetch_assoc($result);
if ($count == 0){
return "Name available";
}else{
//If you are editing a user on the admin section
if (($this->checkAdmin()) && ($u == $u2)){
return "Name available";
}else{
return "Name taken";
}
}
}
as usual, reps for help and all that!
thanks





