<form class="adminForm" method="post" action="admin.identification.action" onsubmit="return checkFields(this);">
<div class="errorLogin"><?php if (array_key_exists('message', $_SESSION)) echo $_SESSION['message'];?></div>
<div class="tabIdentification">
<div class="identification">
<div class="login">
<img alt="[Login]" src="skins/novintec/images/backgrounds/login.png" />
</div>
<div class="loginInfo">
<p>
<label for="login" class="mandatory block">Identifiant *</label>
<input type="text" value="" id="login" name="login" size="40" class="inline" onchange="checkField(this);" />
<script type="text/javascript">arrChecks.push(new Array("login", /^[a-zA-Z_]{1,10}$/));</script>
</p>
extrait du fichier "identification.action.php
$hmiInternaute = Internaute::getItemList('"int_login"=' . $scnDefautConnection->escapeString($_POST['login']));
/************************
if ($_POST['login'] == "")
$v = "POST VIDE - ";
************************/
if ((int)$hmiInternaute->size() === 0)
{
$_SESSION['message'] = $v . "Votre login est incorrect";
HttpBuffer::redirect('login');
}
----------------------------
Tu en auras le coeur net : $_POST a-t-il réellement un problème, ou est-ce plutôt ta fonction $scnDefautConnection->escapeString(), ou encore Internaute::getItemList, ou encore $hmiInternaute->size()... ? Je pense que tu as cherché un bug là où il n'était pas, mais le print_r nous en donnera la certitude.extrait du fichier "identification.action.php
/*php
echo '<pre>';
print_r($_POST);
echo '</pre>';
$hmiInternaute = Internaute::getItemList('"int_login"=' . $scnDefautConnection->escapeString($_POST['login']));
Code : Tout sélectionner
<html>
<head><title>Test formulaire</title></title>
<body>
<h1>Formulaire POST</h1>
<form method="post" action="form.php">
champ A : <input type="text" name="A" value="valeur A"><br>
champ B : <input type="text" name="B" value="valeur B"><br>
<input type="submit">
</form>
<h1>Formulaire GET</h1>
<form method="get" action="form.php">
champ A : <input type="text" name="A" value="valeur A"><br>
champ B : <input type="text" name="B" value="valeur B"><br>
<input type="submit">
</form>
</body>
</html>Code : Tout sélectionner
<html>
<head><title>Résultat</title></head>
<body>
Méthode : <b><?php echo $method = $_SERVER['REQUEST_METHOD']; ?></b><br>
Résultat : <pre><?php print_r(${"_$method"}); ?></pre>
</body>
</html>