bodbod a écrit :
As tu verifier la page appelé par le formulaire ?
Code :
- <form action="ta_page.php">
|
Si tu passe bien dans la page, as tu verifier la page de redirection ?
|
Merci pour la réponse, je pense avoir bien tout réverifié, c'est pour ça que je ne comprends pas . voici les trois pages concernées
Page avec le formulaire :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="page-Type" page="text/html; charset=iso-8859-1">
<meta content="Geoffroy de Fontgalland" name="author">
<meta content="Résumé de la formation et des expériences professionnelles de Geoffroy de Fontgalland" name="description">
<meta name="keywords" content="chant lyrique, baryton, basse, lied, m&eacutelodie francaise, Geoffroy de fontgalland, r&eacutecital, concert">
<title>Reservations</title>
<link rel="stylesheet" type="text/css" href="styles_CS.css" />
<script type="text/javascript">
<!--
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}
function setPage()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
document.getElementById('page').style.height = (windowHeight-30) +'px';
document.getElementById('image_bas').style.position = 'absolute';
document.getElementById('image_bas').style.bottom = 40 + 'px';
}
}
}
function setContent()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var headerHeight = document.getElementById('header').offsetHeight;
if ( (pageHeight - headerHeight) >= 0) {
document.getElementById('content').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('gauche').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('droite').style.height = (pageHeight - headerHeight-10) +'px';
}
}
}
}
function setFooter() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var footerElement = document.getElementById('footer');
var footerHeight = footerElement.offsetHeight;
if (windowHeight - (pageHeight + footerHeight) >= 0) {
footerElement.style.position = 'relative';
footerElement.style.top = (windowHeight - (pageHeight + footerHeight)) + ' px';
}
else {
footerElement.style.position = 'static';
}
}
}
}
window.onload = function() {
setPage();
setContent();
setFooter();
}
window.onresize = function() {
setPage();
setContent();
setFooter();
}
//-->
</script></head>
<body>
<div id="page">
<div id="header">
RESERVATIONS
</div>
<div id="content">
<div id="gauche">
<div id="image_bas" ><img src="images/logo.jpg" /></div>
</div>
<div id="droite"><br />
<div class="titre">Invitation au voyage</div>
<br />
<br />
<br />
<div align=center>
<form method=POST action=formmail.php>
<input type=hidden name=subject value=formmail>
<table>
<tr><td>Nom et Prenom:</td>
<td><input type=text name=nom size=30></td></tr>
<tr><td>Email:</td>
<td><input type=text name=email size=30></td></tr>
<tr><td>Nombres de Places à 16€:</td>
<td><input type=text name=plein_tarif size=30></td></tr>
<tr><td>Nombres de Places à 12€:</td>
<td><input type=text name=tarif_reduit size=30></td></tr>
<tr><td colspan=2>Commentaires:<br>
<textarea COLS=50 ROWS=6 name=comments></textarea>
</td></tr>
</table>
<br> <input type=submit value=Envoyer> -
<input type=reset value=Annuler>
</form>
</div>
</div>
<div id="footer">
<a href="index.html" >Accueil</a>
<a href="presentation_cs.html" >Présentation</a>
<a href="saison_2007_cs.html" >Saison 2007</a>
<a href="artistes_cs.html" >Artistes</a>
<a href="audio_cs.html" >Audio</a>
<a href="photos_cs.html" >Photos</a>
<a href="votre_concert_cs.html" >Votre concert</a>
<a href="nous_soutenir_cs.html" >Nous soutenir</a>
<a href="contact_cs.html" >Contact</a>
</div>
</body></html>
Page appelée par le formulaire :
<?php
$TO = "conspirito@free.fr";
$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.conspirito.asso.fr/rese [...] html" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="page-Type" page="text/html; charset=iso-8859-1">
<meta content="Geoffroy de Fontgalland" name="author">
<meta content="Photos de Geoffroy de Fontgalland" name="description">
<meta name="keywords" content="chant lyrique, baryton, basse, lied, m&eacutelodie francaise, Geoffroy de fontgalland, r&eacutecital, concert">
<title>Reservation</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript">
<!--
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}
function setPage()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
document.getElementById('page').style.height = (windowHeight-30) +'px';
document.getElementById('image_bas').style.position = 'absolute';
document.getElementById('image_bas').style.bottom = 40 + 'px';
}
}
}
function setContent()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var headerHeight = document.getElementById('header').offsetHeight;
if ( (pageHeight - headerHeight) >= 0) {
document.getElementById('content').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('gauche').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('droite').style.height = (pageHeight - headerHeight-10) +'px';
}
}
}
}
function setFooter() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var footerElement = document.getElementById('footer');
var footerHeight = footerElement.offsetHeight;
if (windowHeight - (pageHeight + footerHeight) >= 0) {
footerElement.style.position = 'relative';
footerElement.style.top = (windowHeight - (pageHeight + footerHeight)) + ' px';
}
else {
footerElement.style.position = 'static';
}
}
}
}
window.onload = function() {
setPage();
setContent();
setFooter();
}
window.onresize = function() {
setPage();
setContent();
setFooter();
}
//-->
</html>
et la dernière page :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="page-Type" page="text/html; charset=iso-8859-1">
<meta content="Geoffroy de Fontgalland" name="author">
<meta content="Résumé de la formation et des expériences professionnelles de Geoffroy de Fontgalland" name="description">
<meta name="keywords" content="chant lyrique, baryton, basse, lied, m&eacutelodie francaise, Geoffroy de fontgalland, r&eacutecital, concert">
<title>Réservation</title>
<link rel="stylesheet" type="text/css" href="styles_CS.css" />
<script type="text/javascript">
<!--
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}
function setPage()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
document.getElementById('page').style.height = (windowHeight-30) +'px';
document.getElementById('image_bas').style.position = 'absolute';
document.getElementById('image_bas').style.bottom = 40 + 'px';
}
}
}
function setContent()
{
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var headerHeight = document.getElementById('header').offsetHeight;
if ( (pageHeight - headerHeight) >= 0) {
document.getElementById('content').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('gauche').style.height = (pageHeight - headerHeight-10) +'px';
document.getElementById('droite').style.height = (pageHeight - headerHeight-10) +'px';
}
}
}
}
function setFooter() {
if (document.getElementById) {
var windowHeight = getWindowHeight();
if (windowHeight > 0) {
var pageHeight = document.getElementById('page').offsetHeight;
var footerElement = document.getElementById('footer');
var footerHeight = footerElement.offsetHeight;
if (windowHeight - (pageHeight + footerHeight) >= 0) {
footerElement.style.position = 'relative';
footerElement.style.top = (windowHeight - (pageHeight + footerHeight)) + ' px';
}
else {
footerElement.style.position = 'static';
}
}
}
}
window.onload = function() {
setPage();
setContent();
setFooter();
}
window.onresize = function() {
setPage();
setContent();
setFooter();
}
//-->
</script></head>
<body>
<div id="page">
<div id="header">
RESERVATION ACCOMPLIE
</div>
<div id="content">
<div id="gauche">
<img src="images/logo.jpg" id="image_bas" />
</div>
<div id="droite">
<div class="titre">Merci de votre réservation</em></div>
<p>Les billets seront à retirer au guichet le soir du concert à partir de 19h30. <br />
Votre réservation sera effective lorsque nous aurons reçu votre règlement. Vous recevrez à ce moment une confirmation par mail.</p>
</div>
</div>
</div>
<div id="footer">
<a href="index.html" >Accueil</a>
<a href="presentation_cs.html" >Présentation</a>
<a href="saison_2007_cs.html" >Saison 2007</a>
<a href="artistes_cs.html" >Artistes</a>
<a href="audio_cs.html" >Audio</a>
<a href="photos_cs.html" >Photos</a>
<a href="votre_concert_cs.html" >Votre concert</a>
<a href="nous_soutenir_cs.html" >Nous soutenir</a>
<a href="contact_cs.html" >Contact</a>
</div>
</body></html>
un grand merci,