log($_REQUEST, 'REQUEST'); if( isset($_REQUEST['formA']['annee']) ) { $annee = $_REQUEST['formA']['annee']; } if( !isset($annee) && isset($_REQUEST['formA']['dateparution']) ) { $annee = str_replace('/', '', $_REQUEST['formA']['dateparution']); $jj = substring($annee, 0, 2); $mm = substring($annee, 2, 2); $aa = substring($annee, 4, 4); $annee = $aa.$mm.$jj; } if( isset($_REQUEST['formA']['txt']) ) { $txt = urlencode($_REQUEST['formA']['txt']); } header("Location: ./index.php?page=recherche&vue=annoncelist&txt=$txt&annee=$annee"); exit; } ?>