Problema com $_SESSION em navegadores diferentes
Estou com um problema realizando busca e armazenando na sessão, no Chrome funciona a busca normalmente , mas no IE e no Firefox ele não retorna a busca ...
<form name="formfiltro" action="<?php $_SERVER['PHP_SELF'] ?>" method="post" autocomplete="off">
<label>Por Inquilino:</label>
<input name="id_inq" id="id_inq" type="text" size="100" />
<label>Status:</label>
<input name="pago" id="pago" type="radio" value="P"/> Pago<br />
<input name="pago" id="pago" type="radio" value="A"/> Em Aberto<br />
<label>Pago entre:</label>
<input name="pagamentoinicio" id="pagamentoinicio" type="text" size="6" />I
<input name="pagamentofim" id="pagamentofim" type="text" size="6" />F
<label>Vencimento entre:</label>
<input name="vencimentoinicio" id="vencimentoinicio" type="text" size="6" />I
<input name="vencimentofim" id="vencimentofim" type="text" size="6" />F
<input name="enviar" id="enviar" type="image" title="Pesquisar" value="submit" src="img/ok.png" align="middle" width="32" height="32" />
</form>
E onde trato os resultados:
$_SESSION['pago'] = isset($_POST['pago']) ? $_POST['pago'] : NULL ;
$_SESSION['id_inq'] = isset($_POST['id_inq']) ? $_POST['id_inq'] : NULL;
$id_inq = $_SESSION['id_inq'];
$_SESSION['vencimentoinicio'] = isset($_POST['vencimentoinicio']) ? $vencimentoinicio = implode("-",array_reverse(explode("/",$vencimentoinicio))) : NULL;
$_SESSION['vencimentofim'] = isset($_POST['vencimentofim']) ? $vencimentofim = implode("-",array_reverse(explode("/",$vencimentofim))) : NULL;
$_SESSION['pagamentoinicio'] = isset($_POST['pagamentoinicio']) ? $pagamentoinicio = implode("-",array_reverse(explode("/",$pagamentoinicio))) : NULL;
$_SESSION['pagamentofim'] = isset($_POST['pagamentofim']) ? $pagamentofim = implode("-",array_reverse(explode("/",$pagamentofim))) : NULL;
if($pago=="P" || $pago=="A"){
$whx1 = "AND status = '$pago'";
}
if(!empty($_POST['pagamentoinicio'])){
$whx2 = "AND pagamento_fn BETWEEN '$pagamentoinicio' AND '$pagamentofim'";
}
if(!empty($_POST['vencimentoinicio'])){
$whx3 = "AND data_vencimento BETWEEN '$vencimentoinicio' AND '$vencimentofim'";
}
if(!empty($_POST['id_inq'])){
$whx4 = "AND nome_inquilino LIKE '%".$id_inq."%'";
}
if( isset( $_POST['enviar']) ){
$_SESSION['busca'] = "SELECT * FROM boleto WHERE num_boleto!= '' $whx1 $whx2 $whx3 $whx4 ORDER BY id";
}Discussão (2)
Carregando comentários...