Hi guys.
I have problem with this script in chrome and cant solve it.
It works in any another browser very well, but not in chrome.
Thanks for help.
mail = $("#mail").val();
$.ajax({
url: "conect.php",
type: "POST",
data: "mail=" + mail,
cache: false,
success: function(response){
if (response == "yes"){
$parentTag.addClass('error').append($error.clone().text("this mail is used..."));
show();
}
else $formId.submit();
}
})
<!-- conect.php -->
<?
$mail=$_POST['mail'];
$queryuser=mysql_query("SELECT * FROM table WHERE mail='$mail'",$db1);
$checkuser=mysql_num_rows($queryuser);
if($checkuser != 0)
{ echo "no"; }
else {
echo "yes";
}
?>
I have problem with this script in chrome and cant solve it.
It works in any another browser very well, but not in chrome.
Thanks for help.
mail = $("#mail").val();
$.ajax({
url: "conect.php",
type: "POST",
data: "mail=" + mail,
cache: false,
success: function(response){
if (response == "yes"){
$parentTag.addClass('error').append($error.clone().text("this mail is used..."));
show();
}
else $formId.submit();
}
})
<!-- conect.php -->
<?
$mail=$_POST['mail'];
$queryuser=mysql_query("SELECT * FROM table WHERE mail='$mail'",$db1);
$checkuser=mysql_num_rows($queryuser);
if($checkuser != 0)
{ echo "no"; }
else {
echo "yes";
}
?>