|
|
|
|
Bonjour,
Mon localhost m'indique un parse error sur la ligne en gras, mais je ne vois vraiment pas ce que c'est...
// 2. ACCES A MON SITE :
if
(
(
(!empty($_POST['i_nom']))
AND
($_POST['i_nom'] == 'Valentin G' AND $_POST['password'] == 'val08/05')
{ $_SESSION['i_nom'] = 'existante'; }
)
OR
(!empty($_POST['nom']) AND $_POST['nom'] != 'Prénom + initiale du Nom')
)
{
?>
<em><input style="color: blue" type="button" onclick="window.location='ba.acceuil.php';" value="Aller sur mon site !"/></em>
<?php
}
// 1. AFFICHAGE PAR DEFAUT :
else
{
?>
<em><input style="color: grey" type="submit" value="S'identifier"/></em>
<?php
}
?>
Configuration: Windows Vista Firefox 3.5.3
1/ utilise true ou false pour dire "vrai" ou "faux".
<?php
if(!empty($_POST['i_nom']) AND $_POST['i_nom'] == 'Valentin G' AND $_POST['password'] == 'val08/05') {
$_SESSION['i_nom'] = true;
}
elseif(!empty($_POST['nom']) AND $_POST['nom'] != 'Prénom + initiale du Nom') { ?>
<input style="color:blue;font-style:italic;" type="button" onclick="window.location='ba.acceuil.php';" value="Aller sur mon site !" />
<?php }
else { ?>
<input style="color:grey;font-style:italic;" type="submit" value="S'identifier" />
<?php } ?>
Ton ordinateur ne fait pas ce que tu veux ... mais ce que tu lui dis de faire. |
Une autre question liée :
|