par Genetic10 » 25 juin 2010, 01:10
par Ethan014 » 24 juin 2010, 22:07
Code : Tout sélectionner
<?php /******************************************************************************\ * Simple Page Protect Version 1.0 * * Copyright 2005 All Rights Reserved. * * E-Mail: None Script License: Abm * * Created 28/03/2006 Last Modified 28/03/2006 * * Scripts Archive at: http://www.google.com * *******************************************************************************/ /*******************************************************************************/ // Dest: $TO = "VOTRE ADRESSE MAIL"; $subject = "LE SUJET DU MESSAGE"; $DEFAULT_EXIT_PAGE = "LA PAGE DE REMERCIEMENT"; /******************************************************************************/ $headers = "Envoye depuis $SERVER_NAME <$mail>\n"; $headers .= "mon site"; $message = ""; while (list($key, $val) = each($HTTP_POST_VARS)) { $message .= "$key : $val\n"; } $message .= "\nEnvoye par ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n"; // Permet d'enregistrer l'ip mail($TO, $subject, $message, $headers); if(! $exit_page) $exit_page = $DEFAULT_EXIT_PAGE; Header("Location: ".$exit_page); // Exit -> $exit_page ?>
<form method="post" action="envoyer.php"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif, Tahoma"><strong>Formulaire de contact</strong></font></div><br><table align="center" width="566" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="16"><div align="center"> <font color="#CC0000" size="2" face="Verdana, Arial, Helvetica, sans-serif, Tahoma"><strong> </strong></font> </div></td> </tr> </table> <p align="center"></p><table width="566" border="0" align="center"><tr> <td width="140"><div align="right"><font face="Verdana" size="2">Votre Nom : </font></div></td> <td align="center" valign="middle" width="30"> </td> <td><input name="champ1" type="text" value="<?=stripslashes($_SESSION['champ1']);?>"></td> </tr></table><table width="566" border="0" align="center"><tr> <td width="140"><div align="right"><font face="Verdana" size="2">Votre Prenom : </font></div></td> <td align="center" valign="middle" width="30"> </td> <td><input name="champ2" type="text" value="<?=stripslashes($_SESSION['champ2']);?>"></td> </tr></table><table width="566" border="0" align="center"><tr> <td width="140"><div align="right"><font face="Verdana" size="2">Votre adresse E-Mail :</font></div></td> <td width="30" align="center" valign="middle"> </td> <td><input name="zone_email1" type="text" value="<?=stripslashes($_SESSION['zone_email1']);?>"></td> </tr></table><table width="566" border="0" align="center"><tr> <td width="140" valign="top"><div align="right"><font face="Verdana" size="2">Votre message : </font></div></td> <td width="30" align="center" valign="top"> </td> <td><textarea name="zone_texte1" cols="45" rows="10"><?=stripslashes($_SESSION['zone_texte1']);?></textarea></td> </tr></table><table width="566" border="0" align="center"><tr> <td valign="top"><div align="center"> <input type="reset" name="Reset" value=" Effacer "> <input type="submit" name="envoi" value="Envoyer"> </div></td></tr></table><div align="center"></div></form>
par stealth35 » 24 juin 2010, 21:04
ca m'interesse si tu mets cela en ligne !! car j'ai le meme souci que lui merci d'avance pour ton aide et ce futur post(il sera ou dans le forum? )
par Genetic10 » 24 juin 2010, 21:00
par Ethan014 » 24 juin 2010, 20:49
par stealth35 » 24 juin 2010, 20:47
par Ethan014 » 24 juin 2010, 20:43
par stealth35 » 24 juin 2010, 20:36
C'est pire :S il y a non seulement les erreurs sur la page du formulaire mais en + les erreur dans la page de redirection :S Décidemment
par Ethan014 » 24 juin 2010, 20:31
par stealth35 » 24 juin 2010, 20:28
La sa a l'air de marcher mais toujours le même problème PAGE BLANCHE :S http://jegagnefacile.free.fr/concours2.php
par Ethan014 » 24 juin 2010, 20:21
par stealth35 » 24 juin 2010, 20:18
Ethan014 t'es chez free donc le niveau d'erreur est super bas et ini_set ne marche pas donc a la place de // On vérifie si la fonction ini_set() a été désactivée... $desactive = ini_get('disable_functions'); if (preg_match("/ini_set/i", "$desactive") == 0) { // Si elle n'est pas désactivée, on définit ini_set de manière à n'afficher que les erreurs... ini_set("error_reporting" , "E_ALL & ~E_NOTICE"); } faire : error_reporting(E_ALL | E_STRICT);
// On vérifie si la fonction ini_set() a été désactivée... $desactive = ini_get('disable_functions'); if (preg_match("/ini_set/i", "$desactive") == 0) { // Si elle n'est pas désactivée, on définit ini_set de manière à n'afficher que les erreurs... ini_set("error_reporting" , "E_ALL & ~E_NOTICE"); }
error_reporting(E_ALL | E_STRICT);
par Ethan014 » 24 juin 2010, 20:14
par stealth35 » 24 juin 2010, 20:12
Donc .... Je dois faire quoi?
par Ethan014 » 24 juin 2010, 20:05