Qualche buon anima mi puo' dire perche' quando faccio questo sql

if ($customerCLSUSR=="" && $customerCLSUSR=="")
{$customerCLSCLI = "";}
else {

$sql = "select *
from ACSSI_DAT.CLSSI00F
WHERE CLSUSR = '".$customerCLSUSR."'
AND CLSPSW = '".$customerCLSPSW."' ";
$stmt = db2_exec($dbh, $sql, array('cursor' => DB2_SCROLLABLE));
$row = db2_fetch_array($stmt);
/* Ciclo di lettura dei dati estratti e stampa */
if (!$row=="") {
$customerCLSCLI = $row[7];
}
}


le variabili ($customerCLSUSR=="" && $customerCLSUSR=="") non sono impostate
anche le ho scritte:
print 'Username <input type="text" size="10" maxlength="10"onkeyup=verificacaratteri(this);

Infatti i test sull'immissione obbligatoria dei campi funziona
if (document.action.customerCLSUSR.value==""){
alert("Username obbligatorio");
document.action.customerCLSUSR.focus();
return false;
}

Il fatto e' che se prima del sql imposto io le variabili l'sql funziona e reperisce il cliente giusto.