Le code est le suivant :
<?php
$savoir="ok";
?>
<div align="center">
<style>
input.btn1 {
color:#000066;
<!-- BLEU -->
font: bold small 'trebuchet ms',helvetica,sans-serif;
}
input.btn2 {
color:#FF6600;
<!-- ORANGE-->
font: bold small 'trebuchet ms',helvetica,sans-serif;
}
</style>
<?php
IF(isset($savoir)&&$savoir=="ok"){
echo'<input type="button" name="lien" value="Page 1" class="btn1"onClick="self.location.href='/index.php?page=post'"> ';
}
ELSE{
echo'<input type="button" name="lien" value="Page 1" class="btn1"onClick="self.location.href='/index.php?page=post'"> ';
}
?>
Wamp m'affiche :
Parse error: parse error in C:\wamp\www\bouton.php on line 24
et impossible de rendre ce mini script actif... quelqu'un pourrait t'il m'aider ?