<?php
session_start();
header('Content-type: text/html; charset=utf-8');
include('../includes/config.php');
?>
<?
include('config.php');
$date = date(d)."-".date(m)."-".date(Y);
if(empty($pseudo) OR empty($commentaire))
{
echo "<center><font color=\"black\" face=\"verdana\" size=\"2\">Attention, seul le champ e-mail peut rester vide !</font></center>";
}
else
{
$db = mysql_connect($host,$login,$pass);
mysql_select_db($base,$db);
mysql_query("INSERT INTO comment VALUES('','$pseudo','$mail','$commentaire','$date')");
mysql_close(); }
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=comment.php'>";
?>