Auteur: loic ((---.ppp.tiscali.fr)
Date: 02-06-2005 10:35
[ 151 msg ]
|
bonjour
a tous le monde cela fait un moment que je ne suis pas venu
mais beaucoup de travail pour ma micro-societe commercial
je souhaiterai un peu d'aide pour mon formulaire que j'ai modifier
erreur en ligne 260 teste sur easyPhp 1.8.0.1
( trouver sur le site suivant http://www.mmt-fr.org/article63.html )
Ma modif:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- Information generated and read by Xara Webstyle. Do not edit this line. [Rectangle (Theme);louise;Theme Color 1;1215644;themecolour1;Theme Color 2;1215644;themecolour2;Theme Color 3;2368715;themecolour3;Background Color;16777215;themecolour4;Button Text (Over);16777215;themecolour7;Button Text;0;themecolour8;Heading Text;16777215;themecolour9] -->
<!-- Template design (c) Xara Ltd 2003 -->
<title>Rectangle Themeset</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="Xara Webstyle 4. See xara.com/webstyle"/>
<style type="text/css">
<!--
body {
color: #000000;/*themecolour4%0;*/
background-image: url(contact_files/contact_bg_lines.gif);
background-repeat: repeat
}
table {
font: 9pt arial, sans-serif;
color: #000000;/*themecolour4%0;*/
}
p {
margin-top: 0px;
margin-bottom: 0px;
}
blockquote {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 20px;
color: #000000;/*themecolour4%0;*/
}
ol {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 25px;
color: #000000;/*themecolour4%0;*/
}
ul {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 25px;
color: #000000;/*themecolour4%0;*/
list-style-image: url(contact_files/contact_bullet.gif);
}
}
.rightcoltext {
color: #000000;/*themecolour4%0;*/
border-top-width: 0px;
border-right-width: 3px;
border-bottom-width: 3px;
border-left-width: 0px;
border-bottom-style: solid;
border-bottom-color: #9c8c12;/*themecolour2;*/
border-right-style: solid;
border-right-color: #9c8c12;/*themecolour2;*/
padding-right: 20px;
padding-left: 20px;
background-color: #ffffff;/*themecolour4;*/
background-image: url(contact_files/contact_topbar.gif);
background-repeat: repeat-x;
}
.footer {
color: #ffffff;
padding-top: 10px;
padding-bottom: 10px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
background-color: #9c8c12;/*themecolour1;*/
}
}
a:link {
color: #333333;
text-decoration: none;
}
a:visited {
color: #666666;
text-decoration: none;
}
a:link:hover {
color: 006699;
text-decoration: none;
}
h1 {
font-size: 17px;
font-style: normal;
font-weight: bold;
color: #000000;/*themecolour4%0;*/
margin-top: 0px;
margin-bottom: 0px;
}
h2 {
font-size: 15px;
font-style: normal;
font-weight: bold;
color: #9c8c12;/*themecolour1;*/
margin-top: 0px;
margin-bottom: 0px;
}
.headingborder {
border-top-width: 1px;
border-right-width: 0px;
border-bottom-width: 1px;
border-left-width: 2px;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
}
.leftcolumnbg {
background-color: #cb2424;/*themecolour3;*/
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 3px;
border-left-width: 0px;
border-bottom-style: solid;
border-bottom-color: #9c8c12;/*themecolour2;*/
}
.topstrip {
background-color: #333333;
background-image: url(contact_files/contact_topstrip.gif);
background-repeat: repeat-x;
}
.leftcolumntext {
color: #ffffff;/*themecolour3%0;*/
}
.outerborder {
border: 1px solid #000000;
}
.bgcolor {
background-color: #ffffff;/*themecolour4;*/
}
.divider {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #9c8c12;/*themecolour2;*/
}
.divider2 {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #9c8c12;/*themecolour1;*/
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" >
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="480" align="center" valign="middle"> <p> </p>
<table width="95%" border="0" cellpadding="0" cellspacing="0" class="outerborder">
<tr valign="top">
<td height="22" colspan="2"><table width="100%" height="87" border="0" cellpadding="0" cellspacing="0">
<tr class="topbar">
<td width="135" height="115" valign="top"><img src="boitages_files/boitages_logo.gif" editor="Webstyle4" moduleid="louise (Project)\boitages_logo.xws" border="0" /></td>
<td valign="top" class="topstrip"> <div align="left"><img src="boitages_files/boitages_logo.gif" editor="Webstyle4" moduleid="louise (Project)\boitages_logo.xws" border="0" /></div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="10" valign="top" class="leftcolumnbg"> </td>
<td valign="top" class="rightcoltext">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> <script Webstyle4>document.write('<scr'+'ipt src="boitages_files/xaramenu.js">'+'</scr'+'ipt>');document.write('<scr'+'ipt src="boitages_files/boitages_hnavbar.js">'+'</scr'+'ipt>');/*img src="boitages_files/boitages_hnavbar.gif" moduleid="louise (Project)\boitages_hnavbar_off.xws"*/</script> </td>
</tr>
</table>
<p> </p>
<!-- insert text here -->
<h1> <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!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">
<head>
<title></title>
<p><br />
<?php
function formulaire($Nom="",$Profession="",$Email="",$Message="") {
?>
</p>
<form action="contact.php" method="post">
<table border="0" class="tour" cellspacing="0" cellpadding="10" align="center">
<tr class="unite">
<td width="23%" >Nom Prénom :</td>
<td width="77%"><center>
<input type="text" name="Nom" size="30" value=" " />
</center></td>
</tr>
<tr class="unite">
<td>Profession :</td>
<td width="77%"><center>
<input type="text" name="Profession" value=" " size="30" />
</center></td>
</tr>
<tr class="unite">
<td>Votre E-mail :</td>
<td width="77%"><center>
<input type="text" name="Email" value=" " size="30" />
</center></td>
</tr>
<tr class="unite">
<td valign="top">Message :</td>
<td width="77%"><center>
<textarea name="Message" alt="Message" rows="10" cols="47" wrap="virtual"> </textarea>
</center></td>
</tr>
<tr class="unite">
<td> </td>
<td width="77%"> <center>
<br />
<input type="submit" name="Submit" value="Envoi" alt="Envoi" style="background-color:#00ff00" title="Envoi de votre message" onMouseOver="this.style.color='#ff0000'" onMouseOut="this.style.color='#000000'" onMouseDown="this.style.color='#ff9900'" />
</center></td>
</tr>
</table>
<?
}
if(!isset($Nom)) {
formulaire();
}
else {
$vNom=trim(htmlentities($_POST["Nom"]));
$vProfession=trim(htmlentities($_POST["Profession"]));
$vMessage=trim(htmlentities($_POST["Message"]));
$vEmail=trim(htmlentities($_POST["Email"]));
$destinataire='loic.wag@tiscali.fr';
$titre="Modèle de page Contact";
$message="Provenance : $HTTP_REFERER\n";
$message.="Adresse IP : $REMOTE_ADDR,\n";
$message.="Navigateur : $HTTP_USER_AGENT\n";
$message.="Nom : $vNom\n";
$message.="Profession : $vProfession\n";
$message.="E-mail : $vEmail\n";
$message.="Message : $vMessage\n";
if (empty($vNom) || empty($Message) || empty($Email)) {
echo "<p class='red'>Vous n'avez pas complété toutes les zones :</p>";
$erreur=1;
}
if (!eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-_.]?[0-9a-z])*\\.[a-z]{2,4}$",$vEmail) && ($erreur<>1)){
echo "<p class='red'>L'adresse e-mail n'est pas correcte :</p>";
$erreur=1;
}
if ($erreur==1) {
formulaire($Nom,$Profession,$Email,$Message);
}
else {
mail($destinataire,$titre,$message,"From: $vEmail") ;
echo "<p class='vi4'>Votre message :</p>";
echo "<ul><li>Nom : <span class='red'>" .A $vNom . "</span><br />";
echo "<li>Profession : <span class='red'>" . $vProfession. "</span></li>";
echo "<li>E-mail : <span class='red'>" . $vEmail. "</span></li>";
echo "<li>Message : <span class='red'>" . $vMessage.'</span></li></ul>';
echo "<p class='vi4'>a bien été envoyé au webmestre du site. Nous vous remercions.</p>\n" ;
echo "<form name='boutons'><table border='0' cellspacing='0' cellpadding='0' width='90%' align='center'><tr><td><center>" ;
echo "<input type='button' name='accueil' alt='Accueil' value=\"Retour à la page d'accueil\" style='color:#660066;background-color:#ebe7f1' onclick=\"location.href='/index.php'\" onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#660066'\" onmousedown=\"this.style.color='#ff9900'\" />\n";
echo "</center></td><td><center><input type='button' name='plan' alt='Plan du site' value='Vers le plan du site' style='color:#660066;background-color:#ebe7f1' onclick=\"location.href='http://www.cyes.info/aide/plan.php'\" onmouseover=\"this.style.color='#ff0000'\" onmouseout=\"this.style.color='#660066'\" onmousedown=\"this.style.color='#ff9900'\" /></center></td></tr></table>";
}
}
?>
</form></li>
</ul>
<!-- end text here -->
<p> </p>
<p align="center"> </p>
<p> </p></td>
</tr>
<tr align="center">
<td height="22" colspan="2" class="footer">Merci de votre visite</td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</body>
</html>
dans l'attente de vos reponses je vous en remercie
beaucoup
cordialement
|