Page formulaire ne s'affiche pas sous IE !

Biguiz -  
 Biguiz -
Bonjour,
Je vous serai vraiment très reconnaissant si quelqu'un peut résoudre mon problème.
Voilà sur un site que je suis en train de créer, je possède plusieurs pages de réservation ainsi qu'une page contact avec un formulaire contact qui s'insére dans ma BDD. J'ai mis du code PHP pour me créer un envoi de mail automatique récapitulatif de ce qui a été rentré dans la BDD. Mais voilà, sous Mozilla, pas de problème pour accèder à ces pages où se trouvent le formulaire. Par contre sous IE, impossible d'accèder à ces pages puisque lorsque je clik sur les liens vers les pages, ça m'envoie sur la page index.

Voici mon code PHP :

<?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),htmlspecialch­ars($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);

2 réponses

Biguiz
 
Quelqu'un peut-il m'aider SVP ?
0
Biguiz
 
Relance...
0