bonjour,
jai une page contact.php qund j'envoi les donnees il me dit que Votre message a été envoyée.
mon pb c auniveau de l'affichage
la partie au se trouve les publicité et le bas du site remonte et devient juste sous Votre message a été envoyée.
c pas bien avoiiiir
voila le code de ma page contact.php
nb:j'utilise un modele
[cpp]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/mod-fr.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Contact</title>
<script language="javascript">
function Verifsaisie()
{
if (document.Dataform.nom.value=='')
{alert('Veuillez saisir votre nom svp');
document.Dataform.nom.focus();
return false;
}
if (document.Dataform.prenom.value=='')
{alert('Veuillez saisir votre prenom svp');
document.Dataform.prenom.focus();
return false;
}
if (document.Dataform.adresse.value=='')
{alert('Veuillez saisir votre adresse svp');
document.Dataform.adresse.focus();
return false;
}
if (document.Dataform.tel.value=='')
{alert('Veuillez Dataform votre numero de téléphone svp');
document.Dataform.tel.focus();
return false;
}
if (document.Dataform.message.value=='')
{alert('Veuillez saisir votre message svp');
document.Dataform.message.focus();
return false;
}
if (document.Dataform.email.value!='') {
var usr = "([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\" )";
var domain = "([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,5}";
var regex = "^"+usr+"\@"+domain+"$";
var myrxp = new RegExp(regex);
var check = (myrxp.test(document.Dataform.email.value));
if (check!=true) {
alert('Veuillez entrer une adresse mail valide!');
document.Dataform.email.focus();
document.Dataform.email.value=''
return false;
}
}
return true;
}
</script>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-repeat: repeat;
background-image: url(../images-index/bg.gif);
}
-->
</style>
<script type="text/JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_1112123636_0) return;
window.mm_menu_1112123636_0 = new Menu("root",161,18,"Times New Roman",12,"#000000","#0000FF","#99CCFF","#FFFF99","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1112123636_0.addMenuItem("Situation géographique","location='../fr/situation-geographique.html'" );
mm_menu_1112123636_0.addMenuItem("Histoire de la ville","location='../fr/historique.html'" );
mm_menu_1112123636_0.addMenuItem("Sites touristiques","location='../fr/touristique.html'" );
mm_menu_1112123636_0.addMenuItem("La ville en chiffres ","location='../fr/chiffre.html'" );
mm_menu_1112123636_0.hideOnMouseOut=true;
mm_menu_1112123636_0.bgColor='#FFFFFF';
mm_menu_1112123636_0.menuBorder=2;
mm_menu_1112123636_0.menuLiteBgColor='#FFFFFF';
mm_menu_1112123636_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1112124105_0 = new Menu("root",200,18,"Times New Roman",12,"#000000","#0000FF","#99CCFF","#FFFF99","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1112124105_0.addMenuItem("Date de création","location='../fr/date_creation.html'" );
mm_menu_1112124105_0.addMenuItem("Arrondissements municipaux ","location='../fr/arrondissements.html'" );
mm_menu_1112124105_0.addMenuItem("Conseil municipal","location='../fr/conseil.html'" );
mm_menu_1112124105_0.addMenuItem("Conseil municipal des enfants","location='../fr/enfants.html'" );
mm_menu_1112124105_0.addMenuItem("Services municipaux","location='../fr/services.html'" );
mm_menu_1112124105_0.hideOnMouseOut=true;
mm_menu_1112124105_0.bgColor='#FFFFFF';
mm_menu_1112124105_0.menuBorder=1;
mm_menu_1112124105_0.menuLiteBgColor='#FFFFFF';
mm_menu_1112124105_0.menuBorderBgColor='#FFFFFF';
window.mm_menu_1112124600_0 = new Menu("root",186,18,"Times New Roman",12,"#000000","#0000FF","#99CCFF","#FFFF99","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1112124600_0.addMenuItem("Etat civil","location='../fr/relations.html'" );
mm_menu_1112124600_0.addMenuItem("Légalisation de signature","location='../fr/relations2.html'" );
mm_menu_1112124600_0.addMenuItem("Certification des copies","location='../fr/relations3.html'" );
mm_menu_1112124600_0.addMenuItem("Permis de bâtir","location='../fr/relations4.html'" );
mm_menu_1112124600_0.addMenuItem("Autorisations économiques","location='../fr/relations5.html'" );
mm_menu_1112124600_0.addMenuItem("Fiscalité locale","location='../fr/relations6.html'" );
mm_menu_1112124600_0.hideOnMouseOut=true;
mm_menu_1112124600_0.bgColor='#FFFFFF';
mm_menu_1112124600_0.menuBorder=2;
mm_menu_1112124600_0.menuLiteBgColor='#FFFFFF';
mm_menu_1112124600_0.menuBorderBgColor='#FFFFFF';
mm_menu_1112124600_0.writeMenus();
} // mmLoadMenus()
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#" )!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?" ))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="../css/styles.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script language="JavaScript" src="mm_menu.js"></script>
<style type="text/css">
<!--
.Style6 {font-size: 10px}
-->
</style>
</head>
<body onload="MM_preloadImages('IMAGE/email1-1.gif','IMAGE/b2-over.gif','IMAGE/b4-over.gif','IMAGE/b5-over.gif','IMAGE/b3-over.gif','IMAGE/b1-over.gif','IMAGE/accueil1-1.gif','photos/images_mod-fr/b5-over.gif','photos/images_mod-fr/b3-over.gif','photos/images_mod-fr/b1-over.gif','photos/images_mod-fr/email1-1.gif')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="93">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="89" align="center" valign="top"><img src="../Templates/photos/images_mod-fr/br1.gif" width="152" height="89" /></td>
<td width="20%" align="center" valign="top"><img src="../Templates/photos/images_mod-fr/br2.gif" width="152" height="89" /></td>
<td width="20%" align="center" valign="top"><img src="../Templates/photos/images_mod-fr/br3.gif" width="152" height="89" /></td>
<td width="20%" align="center" valign="top"><img src="../Templates/photos/images_mod-fr/br4.gif" width="152" height="89" /></td>
<td width="20%" align="center" valign="top"><img src="../Templates/photos/images_mod-fr/br5.gif" width="152" height="89" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="65%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="6%" align="center" valign="bottom"><a href="../index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Im','','../Templates/photos/images_mod-fr/accueil1-1.gif',1)"><img src="../Templates/photos/images_mod-fr/accueil1.gif" name="Im" width="71" height="25" border="0" id="Im" /></a></td>
<td width="6%"><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mg','','../Templates/photos/images_mod-fr/email1-1.gif',1)"><img src="../Templates/photos/images_mod-fr/email1.gif" name="mg" width="70" height="25" border="0" id="mg" /></a></td>
<td width="124"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b3','','../Templates/photos/images_mod-fr/b1-over.gif',1)"><img src="../Templates/photos/images_mod-fr/b1.gif" name="b3" width="124" height="23" border="0" id="b3" onmouseover="MM_showMenu(window.mm_menu_1112123636_0,0,23,null,'b3')" onmouseout="MM_startTimeout();" /></a></td>
<td width="124"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b4','','../Templates/photos/images_mod-fr/b2-over.gif',1)"><img src="../Templates/photos/images_mod-fr/b2.gif" name="b4" width="124" height="23" border="0" id="b4" onmouseover="MM_showMenu(window.mm_menu_1112124105_0,0,23,null,'b4')" onmouseout="MM_startTimeout();" /></a></td>
<td width="124"><a href="realisations.html" onmouseover="MM_swapImage('Im4','','../Templates/photos/images_mod-fr/b3-over.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../Templates/photos/images_mod-fr/b3.gif" name="Im4" width="124" height="23" border="0" id="Im4" /></a></td>
<td width="124"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b6','','../Templates/photos/images_mod-fr/b4-over.gif',1)"><img src="../Templates/photos/images_mod-fr/b4.gif" name="b6" width="124" height="23" border="0" id="b6" onmouseover="MM_showMenu(window.mm_menu_1112124600_0,0,23,null,'b6')" onmouseout="MM_startTimeout();" /></a></td>
<td width="44%"><a href="cooperations.html" onmouseover="MM_swapImage('Im7','','../Templates/photos/images_mod-fr/b5-over.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../Templates/photos/images_mod-fr/b5.gif" name="Im7" width="124" height="23" border="0" id="Im7" /></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="borduremodele">
<tr>
<td colspan="2" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF" class="bordurebas">
<table width="99%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="15" align="center" class="borduremodeb"><p><a class="LienRouge" href="../ar/accueil.html">Version Arabe</a></p>
<p><a class="LienRouge" href="../eng/underConstraction.html">Version Anglaise</a></p></td>
</tr>
<tr>
<td class="borduremodfin"><br />
<table width="85%" align="center" class="contour-menu">
<tr><td>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" class="style-menu"><div align="left"><a href="accueil.html" class="LienBleu">Accueil </a></div></td>
</tr>
<tr>
<td><img src="../Templates/photos/images_mod-fr/separateur-bl.GIF" width="125" height="3" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style-menu"><a class="LienBleu" href="#">Informations locales</a></td>
</tr>
<tr>
<td><img src="../Templates/photos/images_mod-fr/separateur-bl.GIF" width="125" height="3"/></td>
</tr>
<tr>
<td align="left" valign="top" class="style-menu"><a class="LienBleu" href="festivites.html">Festivités</a></td>
</tr>
<tr>
<td><img src="../Templates/photos/images_mod-fr/separateur-bl.GIF" width="125" height="3" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style-menu"><a class="LienBleu" href="prix.html">Prix</a></td>
</tr>
<tr>
<td><img src="../Templates/photos/images_mod-fr/separateur-bl.GIF" width="125" height="3"/></td>
</tr>
<tr>
<td height="20" align="left" valign="top" class="style-menu"><a class="LienBleu" href="plan%20du%20site.html">Plan du site</a></td>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
<tr><td class="bordur-permis-batir"><div align ="center" class="Lien-permis"><a href="consult-permis.php">Consultation des permis de bâtir</a></div></td></tr>
<tr>
<td align="center" valign="top" class="borduremodfin"><br />
<div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="146" height="69">
<param name="movie" value="../IMAGE_commun/jeunesse2.swf" />
<param name="quality" value="high" />
<embed src="../IMAGE_commun/jeunesse2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="144" height="69"></embed>
</object>
<img src="../IMAGE_commun/jeunesse02.jpg" width="146" height="110" usemap="#Map7" /></div></td>
</tr>
<tr>
<td align="center" valign="top" class="borduremodfin"><br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="126" height="129">
<param name="movie" value="../photoSousse.swf" />
<param name="quality" value="high" />
<embed src="../photoSousse.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="151"></embed>
</object>
<br /></td>
</tr>
<tr>
<td align="center" valign="top" class="borduremodfin"><br />
<img src="../Templates/photos/images_mod-fr/perle.png" width="134" height="39" border="0" usemap="#Map4" /><br /></td>
</tr>
<tr>
<td align="center" valign="top" class="borduremodfin"><br /><img src="../Templates/photos/images_mod-fr/bawaba.png" width="134" height="53" border="0" usemap="#Map2" /><br /></td>
</tr>
<tr>
<td align="center" valign="top" class="borduremodfin"><br />
<img src="../Templates/photos/images_mod-fr/sicad.png" width="82" height="33" border="0" usemap="#Map" /><br /></td>
</tr>
<tr><td align="center" valign="top" class="borduremodfin"><br />
<img src="../Templates/photos/images_mod-fr/bab.gif" width="86" height="116" border="0" usemap="#Map3" /></td>
</tr>
<tr>
<td height="57" align="center" valign="top"><br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="84" height="75">
<param name="movie" value="../meteo.swf" />
<param name="quality" value="high" />
<embed src="../meteo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="84" height="75"></embed>
</object></td>
</tr>
<tr>
<td height="58" align="center" valign="top"><img src="image/meteo.png" width="79" height="25" border="0" usemap="#Map6" /></td>
</tr>
</table> </td>
<td height="1225" colspan="2" align="center" valign="top" bgcolor="#FFFFFF" class="bordure">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="359" align="left" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><br />
<img src="../IMAGE_commun/contact.gif" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td align="center" valign="middle">
<form action="validcontact.php" method="post" name="Dataform" id="Dataform">
<table width="75%" align="center" cellpadding="0" cellspacing="0" class="btn">
<tr>
<td>
<blockquote>
<p><br>
<center>
<input name="image" type="image" onclick="return Verifsaisie();" src="../fr/IMAGE/btenvoyer.gif" alt="Valider" />
</center><br>
(*) Champ obligatoire.</p>
</blockquote></td>
</tr>
</table>
<table width="100%" cellspacing="0">
<tr>
<td><table align="center">
<tr>
<td>
<?php
if(@$_REQUEST['pResut'] == 1)
{
?>
<div style=" background-color:#d9f0f8; padding: 20px; min-height:100px ">
<b>Votre message a été envoyée.<br />
<br />
</b><br />
</div>
<?php
}// fi if
elseif (@$_REQUEST['pResut'] == 2)
{
?>
<div style=" background-color:#d9f0f8; padding:20px; min-height:100px ">
Désolé. Nous avons rencontré un problème
d'envoi de mail. <br />
<br />
Veuillez vérifier votre adresse E-mail
et recommencer. </div>
<?php
}// fi if
else
{
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td width="36%" rowspan="5"><div align="center"><img src="../IMAGE_commun/contact.gif" width="36" height="49" /></div></td>
<td width="23%"> <div align="left">* Nom :</div></td>
<td width="41%"><input name="nom" type="text" id="nom2" maxlength="50" /></td>
</tr>
<tr>
<td> <div align="left">* Prénom :</div></td>
<td><input name="prenom" type="text" id="prenom" maxlength="50" /></td>
</tr>
<tr>
<td> <div align="left">* Adresse :</div></td>
<td><input name="adresse" type="text" id="adresse" maxlength="255" /></td>
</tr>
<tr>
<td> <div align="left">* Téléphone:</div></td>
<td><input name="tel" type="text" id="tel" maxlength="50" /></td>
</tr>
<tr>
<td><div align="center">E-mail :</div>
<br /></td>
<td valign="top"><input name="email" type="text" id="email" maxlength="50" /></td>
</tr>
<tr>
<td colspan="3"><div align="center"> * Votre message
</div></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<textarea name="message" cols="50" rows="6" id="message"></textarea>
</div></td>
</tr>
</table>
</form>
</td>
</tr>
</table><?php } ?>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
<tr>
<td width="67%"center" bgcolor="#CCCCCC" class="bordure"><div class="style-affiche">
<div align="center"><a href="../festival.html"><img src="../Templates/photos/imges_mod-ar/festival.png" width="389" height="84" border="0" /></a></div>
</div></td>
<td width="17%" align="center" bgcolor="#FFFFFF" class="bordure_sponceur"><img src="../Templates/photos/images_mod-fr/sponceur.JPG" width="120" height="106" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"> <img src="../Templates/photos/images_mod-fr/ban-sig-bleu1.png" width="760" height="64" /></td>
</tr>
</table>
<map name="Map2" id="Map2"><area shape="rect" coords="0,0,134,51" href="http://www.bawaba.gov.tn/" />
</map>
<map name="Map3" id="Map3"><area shape="rect" coords="3,5,84,113" href="http://www.bab-el-web.com/" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="1,2,134,37" href="../Sousse.html" />
</map>
<map name="Map7" id="Map7">
<area shape="rect" coords="0,1,146,108" href="http://www.pactejeunesse.tn/" />
</map>
<map name="Map6" id="Map6"><area shape="rect" coords="-2,2,80,25" href="http://www.meteotunisie.com/" />
</map>
<map name="Map" id="Map"><area shape="rect" coords="1,0,82,35" href="http://www.sicad.gov.tn/" />
</map></body>
<!-- InstanceEnd --></html>