hi any one can help me if

find this error in code

when i m Checking availability of email

 undefined massages display in error what is wrong in my code





   if ( ob ) {
                if ( ! this.verified )  {
                        error_div.innerHTML = "Checking availability
of email.....";
                        error_div.style.display = "";

                        // this fun not run
                        if ( requester != null &&
requester.readyState != 0 && requester.readyState != 4 ) {
                                requester.abort();
                        }
                        try  {
                                requester = new XMLHttpRequest();
                        }catch (error)  {
                                try  {
                                        requester = new ActiveXObject
("Microsoft.XMLHTTP");
                                }
                                catch (error)  {
                                        requester = null;
                                        return ;
                                }
                        }
                        requester.onreadystatechange =
onReadyStateChangeEmail;
                        requester.open("GET", "../manager/
CheckEmail.php?email=" + email.value, true);
                        requester.send(null);
                }
        }
        return true;




####################################################


php code


if($_GET['email']){
                        $email=$_GET['email'];
/*                      if 
(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*...@[a-z0-9-]+(\.[a-z0-9-]+)*
(\.[a-z]{2,3})$", $email)){
                        $print= "<font face='Verdana' size='1' 
color=blue>Invalid email</
font>";

                        echo $print;
                }
                else
                {
*/                      $q="select * from contact_detail where Email='$email'";
                        $r=mysql_query($q);
                        $no=mysql_num_rows($r);
                        if($no != 0){
                                $print= "<font face='Verdana' size='1' 
color=green>Sorry $email
has already Existed</font>";

                        echo $print;
                        }
                        else{
                        $print="";
                        $_SESSION[email]=$email;
                        echo $print;
                }
                }




regard

Hirendra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to