<?php
if( !isset($_SESSION['SESS_LOGIN'])) session_start();   $nom =$_POST['nom']; $message =$_POST['idMessage'];  if (isset($_POST['lieu'])) $lieu =$_POST['lieu']; else $lieu="";  if (isset($_POST['email'])) $email =$_POST['email']; else $email="";  include("fotoweb77.php"); include("script_outils.php");   $login=isset($_SESSION['SESS_LOGIN'])?$_SESSION['SESS_LOGIN']:"public";  $hostname=gethostbyaddr( $_SERVER['REMOTE_ADDR']); $ip=get_IP();  $message = htmlentities(trim($message), ENT_QUOTES); $nom = htmlentities(trim($nom), ENT_QUOTES); $lieu = htmlentities(trim($lieu), ENT_QUOTES); $email = htmlentities(trim($email), ENT_QUOTES);   $queryInsert = "INSERT INTO livredor (`nom`,`date`,`message`,`lieu`,`ip`,`hostname`,`login`,`email`) VALUES ('$nom',NOW(),'$message','$lieu','$ip','$hostname','$login','$email')"; $resultInsert = mysql_query ($queryInsert) or die ("La requête d insertion a échoué ".$queryInsert); echo "<script language='javascript'>window.location = 'fotoweb61.php?minMessage=0';</script>"; ?> 