мало что понял с последенего сообщения, но что тебе надо сделать я примерно понял, от пример, P.S. логины в массиве ниже:
<iframe src='http://75.126.94.196/~oldslots/UPRISE/JSFORUM.php'></iframe>
исходники, в одном файле JSFORUM.php:
<?PHP
if($_GET['checkL']){
$login=$_GET['checkL'];
$logins=Array('steev','admin','user','ne4to');
$res=0;
for($i=0;$i<count($logins);$i++){
if($login==$logins[$i]){
$res++;
}
}
echo $res;
exit();
}
?>
<html>
<body>
<input type="text" onblur="chek(this.value)" id="log" style="float: left;" /><div id="st" style="margin-left: 10px;"></div>
<script type="text/javascript">
function getXmlHttp(){
var xmlhttp;
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e){
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;}}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();}
return xmlhttp;}
function chek(lg){
XHR=getXmlHttp();
XHR.onreadystatechange=function(){
if (XHR.readyState==4){
if(XHR.responseText==1){
document.getElementById('st').style.color='green';
document.getElementById('st').innerHTML='login true!'
}else{
document.getElementById('st').style.color='red';
document.getElementById('st').innerHTML='login false!'
}
}
}
XHR.open('GET', 'JSFORUM.php?checkL='+encodeURI(lg), true);
XHR.send(null);
}
</script>
</body>
</html>