J'ai un script php qui fonctionnait très bien mais j'ai du faire une gaffe car il ne fonctionne plus, je ne trouve pas l'erreur.
Code partiel concerné du script TestCaptcha.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
</head>
<body>
<form name='Computer' method='post' action='TestCaptcha.php'>
<?php
if (isset($_POST['Captcha']))
{
// Script si le captcha a été bien complété : n'est jamais set !?
echo "<br>Post Captcha : ".$_POST['Captcha'];
}
else
{
echo "<br>Post Captcha NOT set";
?>
<br><input type="text" name="Captcha" style="text-align:left; width: 80px;"/>
<br><input type="submit" style="width: 80px;"/>
<?php
}
?>
</body>
</html>
Au premier run $_POST['Captcha'] n'est pas initialisé, quand on clique sur le bouton le script s'appelle lui-même et $_POST['Captcha'] devrait être initialisé.Il doit y avoir quelque chose dans le reste du code (un peu long) qui "déinitialise" $_POST['Captcha'] pouvez-vous m'aider à trouver quoi ?
En d'autres termes qu'est ce qui peut désinitialiser une variable post ?
Le script complet est ici https://www.rudyv.be/Aquarium/RVRT/RVosmo.php
Merci