Bonjour,
J'ai une page qui contient des boutons. et selon le bouton kiké, la page doit se recharger et executer une action particuliere.
Ca à marché , mais ça ne marche plus, la page semble bien se recharger, mais rien ne se passe, toujours un echos de NOK:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
</head>
<body>
<form id="aaa" name="form1" method="post" action="ess_bout.php">
<input type="submit" name="button2008" id="bu" value="2008" />
</form>
<?php
if(isset($_POST['button2008']))
{
echo "ok "."<BR>";
$champ = $_POST['button2008'];
echo $champ;
}
else
{
echo "nok "."<BR>";
$champ = $_POST['button2008'];
echo $champ;
}
?>
</body>
</html>
Si quelqu'un peu m'aider, j'y pige plus rien. (FAI: Free)
Merci,