j'arrive pas a recuperer des variables a partir d'un fichier html.
Voici mon Code:
Code : Tout sélectionner
<html>
<SCRIPT LANGUAGE="JavaScript">
function choix_action(choix)
{
switch (choix)
{
case "Valider":
MonForm.action="date.php";
MonForm.submit();
break;
}
}
</script>
<head>
<title>Fiabilité statiqtique</title>
</head>
<body>
<form method="GET" name="MonForm"> <br><br>
<table>
<tr>
<td>Debut du periode : </td>
<td><input type=\"text\" name=\"Debut\" /></td>
</tr>
<tr>
<td>Fin de periode:</td>
<td><input type=\"text\" name=\"Fin\" /></td>
</tr></table>
<input type="button" value ="Valider" onclick=choix_action(this.value);>
</form>
</body>
</html>$debut=$_GET["Debut"];
$fin =($_GET["Fin"];
et dans le echo je fais echo $debut,$fin;
mais j'ai pas resultat.comment ça se fait!!!
merci de m'aider