$id and tipo='$tipo'"; } $result = pg_query($dbcon, $query); while ($dados = pg_fetch_array($result)) { $existe = trim($dados['telefone']); } if ($existe != '') { ?>
CADASTRO DE CONTATOS
Nome:
Telefone: " size="40" maxlength="100" />
Tipo: onchange="javascript:document.form1.ramal.disabled = true;document.form1.ramal.className = 'validate[optional] caixas';"/> Pública onchange="javascript:document.form1.ramal.disabled = false; document.form1.ramal.className = 'validate[required] caixas';"/> Ramal
Posição: " size="10" maxlength="10" />
Ramal: