1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<!-- fichier mapage.php -->
<script>
function aff_result(){
leform.aff.value="1";
leform.submit();
}
</script>
<? if(isset($_POST["valider"])){
include("inserer.php");
if($_POST["aff"] == "1"){ ?>
<script>
window.open("resultats.php"); // j'ai oublié la syntaxe de cette fonction
</script>
<? }
}
?>
<form name="leform" action="mapage.php" method="post">
<input .../>
<input .../>
...
<input type="hidden" name="aff" value="0" />
<input type="submit" name="valider" value="Valider" />
<input type="button" onclick="javascript:aff_result()" value="Afficher" />
</form> |