bonsoir à tous !!
voila mon problême :
ma page de remerciement aprés l'envoi d'un mail ne fonctionne pas. je reçois bien mon mail, mais la page reste bloqué sur une page blanche correspondante au script formmail.php qui devrait redirigé sur la page remerciement.php....
voici le lien de mon site en construction en ligne, essayez le formulaire contact pour voir le problême...
http://www.marinelepetit.com/contact.php
je vous place aussi les trois dossiers correspondant au formulaire :
1) la page contact :
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>www.marinelepetit.com</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="body2">
<?php include("header.php"); ?>
<?php include("menu.php"); ?>
<br><br><br>
<table class="tb-contact-global">
<tr>
<td class="td-global">
<a href="cv.php"><img src="images/cv-bouton.png"></a>
</td>
</tr>
</table>
<br><br>
<table class="tb-contact-global">
<tr>
<td class="td-contact-global">
<div id="formulaire">
<p>Write in the form to send a e-mail : </p>
<br>
<form action="formmail.php" method=post enctype="multipart/form-data">
<input type=hidden name=subject value=formmail>
<table>
<tr>
<td>Name :</td>
<td><input type="text" name="nom" id="nom"></td>
</tr>
<tr>
<td>Surname :</td>
<td><input type= "text" name="prenom" id="prenom"></td>
</tr>
<tr>
<td>E-mail :</td>
<td><input type= "text" name="e-mail" id="e-mail"></td>
</tr>
<tr>
<td>company :</td>
<td><input type="text" name="societe" id="societe"></td>
</tr>
</table>
<br><br>
preliminary estimate : <input type="checkbox" name="demandededevis" id="demandededevis">
<br><br>
<label>Choose your themes : </label>
<select>
<option>report</option>
<option>artwork</option>
<option>model</option>
<option>customer relationship</option>
<option>exhibition</option>
<option>private</option>
</select>
<br><br>
Text : <textarea rows="6" cols="30" name="texte" id="texte"> </textarea>
<br><br>
<input type="image" src="images/bouton-formulaire-contact.png" value=Envoyer>
</div>
</form>
</td>
<td class="td-carte-de-viste-contact-dans-cellule">
<img src="images/IMG_5747-copie-copie.jpg" class="image-contact"/>
</td>
</tr>
</table>
<br><br>
<?php include("footer.php"); ?>
</div>
</body>
</html>
viens ensuite le script php :"formmail.php" qui doit rediriger vers la page remerciement.php:
<?php
$TO = "[email protected]";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
Header("Location: http://www.marinelepetit.com/remerciement.php");
?>
puis pour finir la page remerciement.php qui devrait normalement être affiché via le script php
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>www.marinelepetit.com</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="body2">
<?php include("header.php");?>
<?php include("menu.php");?>
<br><br>
<table class="tb-remerciement-global">
<tr>
<td class="td-remerciement-global">
<p>Merci, votre message a bien ete envoye.</p>
</td>
</tr>
<tr>
<td class="td-remerciement-global">
<a href="acceuil.php"><img src="images/bouton-remerciement.png" alt="clic"/></a>
</td>
</tr>
</table>
<br><br>
<?php include("footer.php"); ?>
</div><!-- fin body2 -->
</body>
</html>
toute mes pages se situent à la racine du site et donc pas de problême de repertoire...
voila je vous remercie de m'aider car je ne comprends pas d'ou vient le truc....
merci
bonsoir à tous !!
voila mon problême :
ma page de remerciement aprés l'envoi d'un mail ne fonctionne pas. je reçois bien mon mail, mais la page reste bloqué sur une page blanche correspondante au script formmail.php qui devrait redirigé sur la page remerciement.php....
voici le lien de mon site en construction en ligne, essayez le formulaire contact pour voir le problême...[url]http://www.marinelepetit.com/contact.php[/url]
je vous place aussi les trois dossiers correspondant au formulaire :
1) la page contact :
[php]<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>www.marinelepetit.com</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="body2">
<?php include("header.php"); ?>
<?php include("menu.php"); ?>
<br><br><br>
<table class="tb-contact-global">
<tr>
<td class="td-global">
<a href="cv.php"><img src="images/cv-bouton.png"></a>
</td>
</tr>
</table>
<br><br>
<table class="tb-contact-global">
<tr>
<td class="td-contact-global">
<div id="formulaire">
<p>Write in the form to send a e-mail : </p>
<br>
<form action="formmail.php" method=post enctype="multipart/form-data">
<input type=hidden name=subject value=formmail>
<table>
<tr>
<td>Name :</td>
<td><input type="text" name="nom" id="nom"></td>
</tr>
<tr>
<td>Surname :</td>
<td><input type= "text" name="prenom" id="prenom"></td>
</tr>
<tr>
<td>E-mail :</td>
<td><input type= "text" name="e-mail" id="e-mail"></td>
</tr>
<tr>
<td>company :</td>
<td><input type="text" name="societe" id="societe"></td>
</tr>
</table>
<br><br>
preliminary estimate : <input type="checkbox" name="demandededevis" id="demandededevis">
<br><br>
<label>Choose your themes : </label>
<select>
<option>report</option>
<option>artwork</option>
<option>model</option>
<option>customer relationship</option>
<option>exhibition</option>
<option>private</option>
</select>
<br><br>
Text : <textarea rows="6" cols="30" name="texte" id="texte"> </textarea>
<br><br>
<input type="image" src="images/bouton-formulaire-contact.png" value=Envoyer>
</div>
</form>
</td>
<td class="td-carte-de-viste-contact-dans-cellule">
<img src="images/IMG_5747-copie-copie.jpg" class="image-contact"/>
</td>
</tr>
</table>
<br><br>
<?php include("footer.php"); ?>
</div>
</body>
</html>[/php]
viens ensuite le script php :"formmail.php" qui doit rediriger vers la page remerciement.php:
[php]<?php
$TO = "
[email protected]";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
Header("Location: http://www.marinelepetit.com/remerciement.php");
?>[/php]
puis pour finir la page remerciement.php qui devrait normalement être affiché via le script php
[php]<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>www.marinelepetit.com</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="body2">
<?php include("header.php");?>
<?php include("menu.php");?>
<br><br>
<table class="tb-remerciement-global">
<tr>
<td class="td-remerciement-global">
<p>Merci, votre message a bien ete envoye.</p>
</td>
</tr>
<tr>
<td class="td-remerciement-global">
<a href="acceuil.php"><img src="images/bouton-remerciement.png" alt="clic"/></a>
</td>
</tr>
</table>
<br><br>
<?php include("footer.php"); ?>
</div><!-- fin body2 -->
</body>
</html>
[/php]
toute mes pages se situent à la racine du site et donc pas de problême de repertoire...
voila je vous remercie de m'aider car je ne comprends pas d'ou vient le truc....
merci