esse que ceci est bien ecrit :
if(isset($_POST['pseudo']) and isset($_POST['mess']))
Voila le code en entier
<html>
<head>
<title> testp </title>
<link rel="stylesheet" media="screen" type="text/css" title="blue" href="sombre.css"/>
</head>
<body>
<form action="testmysql.php" method="POST"><p>
Pseudo <input type="text" name="pseudo"/></br>
Message <input type="text" name="mess"/></P>
</form>
<?
if(isset($_POST['pseudo']) and isset($_POST['mess']))
{
$pseudo=$_post['pseudo'];
$mess=$_post['mess'];
mysql_connect("localhost","root");
mysql_select_db("exercice");
mysql_query(Insert into chat value("";"$mess";"$pseudo")
}
else
{
echo "entrer votre pseudo et votre message";
}
mysql_close();
?>
<p>t'chat</p>
<?
mysql_connect("localhost","root");
mysql_select_db("exercice");
$chat=mysql_query(select * from chat order by id);
while($text=mysql_fetch_array($chat))
{
echo $text['pseudo'] ."ecrit". $text['mess'];
}
Mysql_close();
?>
</body>
<html>