|
|
|
|
biguiz, le mardi 22 avril 2008 à 17:51:22Configuration: Windows XP Firefox 2.0.0.14
Salut, le problème est très certainement au niveau de ton code php, mais sans le code ça va être difficile de t'aider ^^
Si tu veux pas le monter tu peux toujours essayer de passer en mode debug (error_reporting = E_ALL). |
<?php require_once('Connections/liens.php'); ?>
<?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO contact (contact_id, contact_civilite, contact_nom, contact_prenom, contact_mail, contact_telfixe, contact_telportable, contact_adresse, contact_cp, contact_ville, contact_pays, contact_type, contact_titre, contact_message, contact_client, contact_entreprise, contact_emailing) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['contact_id'], "int"), GetSQLValueString($_POST['contact_civilite'], "text"), GetSQLValueString($_POST['contact_nom'], "text"), GetSQLValueString($_POST['contact_prenom'], "text"), GetSQLValueString($_POST['contact_mail'], "text"), GetSQLValueString($_POST['contact_telfixe'], "int"), GetSQLValueString($_POST['contact_telportable'], "int"), GetSQLValueString($_POST['contact_adresse'], "text"), GetSQLValueString($_POST['contact_cp'], "int"), GetSQLValueString($_POST['contact_ville'], "text"), GetSQLValueString($_POST['contact_pays'], "text"), GetSQLValueString($_POST['contact_type'], "text"), GetSQLValueString($_POST['contact_titre'], "text"), GetSQLValueString($_POST['contact_message'], "text"), GetSQLValueString($_POST['contact_client'], "text"), GetSQLValueString($_POST['contact_entreprise'], "text"), GetSQLValueString(isset($_POST['contact_emailing']) ? "true" : "", "defined","'Y'","'N'")); mysql_select_db($database_liens, $liens); $Result1 = mysql_query($insertSQL, $liens) or die(mysql_error()); $insertGoTo = "?action=ok";// // if (isset($_SERVER['QUERY_STRING'])) { // $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; // $insertGoTo .= $_SERVER['QUERY_STRING']; // } } header(sprintf("Location: %s", $insertGoTo)); $destinataire="exemple@wanadoo.blabla" ; $objet="Demande de reservation - BGPA" ; $message.="Coordonnees de la personne a contacter /n"; $message.="Prenom et nom : ". utf8_decode($_POST['contact_civilite']).".". utf8_decode($_POST['contact_prenom']).".". utf8_decode($_POST['contact_nom'])."\n"; $message.="Mail : ". utf8_decode($_POST['contact_mail'])."\n"; $message.="Numero de telephone : ". utf8_decode($_POST['contact_telfixe']).".". utf8_decode($_POST['contact_telportable'])."\n"; $message.="Adresse : ". utf8_decode($_POST['contact_adresse'])."\n"; $message.="Code Postal : ". utf8_decode($_POST['contact_cp'])."\n"; $message.="Ville : ". utf8_decode($_POST['contact_ville'])."\n"; $message.="Pays : ". utf8_decode($_POST['contact_pays'])."\n"; $message.="Contact client/entreprise : ". utf8_decode($_POST['contact_client']).".". utf8_decode($_POST['contact_entreprise'])."\n"; $message.="Message : ". utf8_decode($_POST['contact_message'])."\n"; $message.="Demande de type d'activité réservée : ". utf8_decode($_POST['contact_type'])."\n"; $message.="Activité à réserver : ". utf8_decode($_POST['contact_titre'])."\n"; $from="From: ".$_POST['contact_mail'] ; mail(htmlspecialchars($destinataire),addslashes($objet),addslashes($message),htmlspecialchars($from)) ; mysql_select_db($database_liens, $liens); $query_rs_contact = "SELECT * FROM contact"; $rs_contact = mysql_query($query_rs_contact, $liens) or die(mysql_error()); $row_rs_contact = mysql_fetch_assoc($rs_contact); $totalRows_rs_contact = mysql_num_rows($rs_contact); mysql_select_db($database_liens, $liens); $query_rs_type = "SELECT * FROM activitetype"; $rs_type = mysql_query($query_rs_type, $liens) or die(mysql_error()); $row_rs_type = mysql_fetch_assoc($rs_type); $totalRows_rs_type = mysql_num_rows($rs_type); mysql_select_db($database_liens, $liens); $query_rs_activite = "SELECT * FROM activite"; $rs_activite = mysql_query($query_rs_activite, $liens) or die(mysql_error()); $row_rs_activite = mysql_fetch_assoc($rs_activite); $totalRows_rs_activite = mysql_num_rows($rs_activite); mysql_select_db($database_liens, $liens); $query_rs_produits = "SELECT * FROM produit"; $rs_produits = mysql_query($query_rs_produits, $liens) or die(mysql_error()); $row_rs_produits = mysql_fetch_assoc($rs_produits); $totalRows_rs_produits = mysql_num_rows($rs_produits); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
Relance... |
Personne ne peut m'aider SVP ? |
Toujours personne qui peut m'aider snif ? |