Hola
-=ArgoN=- Código PHP:
<?php
// usa TRIM
$oper2 = TRIM($_POST['oper2']); //WHERE, SET
$cond1 =TRIM($_POST['cond1']); //condition 1
......
if($oper1 == "SELECT"){
while($row = mssql_fetch_array($consulta)){
$stats = $row[$stat];
/*2*/ echo "&estatus=$stats&";
}
?>
Prueba con eso a lo mejor tu variable llega con espacios en blanco.
Salu2