Bonjour.

Voilà, j'ai le script suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<?php
if(isset($_POST['date'])){
	echo "<p style='margin-top: 200px; text-align: center; color: blue;'>Le timestamp pour <span style='color: red;'>".$_POST['date']."</span> est <i style='color: lime;'>".strtotime($_POST['date'])."</i></p><br><br><h2 align='center'><a href=''>Autre conversion</a></h2><p align='center' style='margin-top: 100px; font-size: 10px;'><a href='/?p=serv'>Retours aux services</a></p><p align='center' style='margin-top: 100px; font-size: 10px;'><a href='/?p=serv'>Retours aux services</a></p>";
}
elseif(isset($_POST['timestamp'])){
	echo "<p style='margin-top: 200px; text-align: center; color: blue;'>La date pour <span style='color: red;'>".$_POST['timestamp']."</span> est <i style='color: lime;'>".date('d/m/Y à H\hi', $_POST['timestamp'])."</i></p><br><br><h2 align='center'><a href=''>Autre conversion</a></h2><p align='center' style='margin-top: 100px; font-size: 10px;'><a href='/?p=serv'>Retours aux services</a></p><p align='center' style='margin-top: 100px; font-size: 10px;'><a href='/?p=serv'>Retours aux services</a></p>";
}
else{
	echo "<div style='color: blue; text-align: center;'><h1>Convertissez une date en timestamp :</h1><br><br><br><form action='' method='post'><h2>Date => Timestamp</h2>Date (JJ-MM-AAAA HH:mm:ss) : <input type='text' name='date'><br><br><h2>Timestamp => Date</h2>Timestamp : <input type='text' name='timestamp'><br><br><br><input type='submit' value='Convertir'></form></div><p align='center' style='margin-top: 100px; font-size: 10px;'><a href='/?p=serv'>Retours aux services</a></p>";
}
?>
Pas d'erreur, et pourtant, quand on valid pour le champs timestamp, il est affiché "La date pour est "

Oo quel est le problème S.V.P ???

D'avance merci