formulaire de contacte help svp - Programmation
Dans la même thématique :
Ceci répond-il à votre question ? Oui | Non
 

Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : formulaire de contacte help svp
 
Profil : IDNaute
Plus d'informations

Bonjour
 
Voila depui quelque moi j'utilise un formulaire de contacte .
depuis quelque jours  le formulaire m'envois aucun mail j ai teste a plusieurs reprise  de m'envoyer des message via mon formulaire mais rien a faire je reçois walou  rien  aider moi svp  
 
ps le formulaire que j ai je lai pris dans un site j ai juste ajouter mon adresse mail  
 
voila le formulaire en question  
 
<?php
################################################################
# Mail-it Now! Upload2Server 1.5.2                             #
# Script written by: Matthieu Biscay                           #
# Web: http://www.skyminds.net/source/                         #
# Contact: http://www.skyminds.net/contact/                    #
# Copyright SkyMinds.Net. All rights reserved.                 #
# This script is linkware. Please leave this header here.      #
# For commercial use or custom version contact us.             #
################################################################
 
// ---------------------------------- EDIT HERE --------------------------------- //
 /* Your email where the results of the contact form will be sent to. */
 $dest = "gaoua@huileargan.fr";
 
 /* The full path to your upload directory. This will appear in the email you'll get so that you can retrieve the uploaded files easily. */
 $up_full = "http://www.huileargan.fr/upload/";
 
 /* The relative path to your upload directory from this script. This is an important settings : if the files are not uploaded, chances are that this is not set properly.
 Configuration example : if this file is at www.domain.net/contact.php and your upload directory is www.domain.net/upload/, the setting should be :
 $up_dir = "./upload/";
 */
 $up_dir = "./upload/";
 
 /*  The number of upload fields you want on the form. Put 0 if you don't want any. */
 $UploadNum = "3";
 
 /*Host mail functions. Possible values are 0 or 1. See below:
 0 is for most hosts (default value).  
 1 is for Online.Net (Online). */
 $online_isp = "0";  
// --------------------------------------------------------------------------------- //
 
function unique_id()
{
 $taille = 6;
 $new_pass = '';
 $lettres = "abcdefghijklmnpqrstuvwxyz123456789";
 srand(time());
 for ($i=0;$i<$taille;$i++)
 {
  $new_pass.=substr($lettres,(rand()%(strlen($lettres))),1);
 }
define("timer", $new_pass);
}
unique_id();
ini_set("sendmail_from", $dest);
 
if(isset($_POST["submit"]))
{
// ------------------------ Fields Verification Process ------------------------- //
 
  $From = preg_replace("/\r/", "", $_POST['From']);  
  $From = preg_replace("/\n/", "", $_POST['From']);
  $Name = preg_replace("/\r/", "", $_POST['Name']);  
  $Name = preg_replace("/\n/", "", $_POST['Name']);
 
 $Nada = '';
 $Msg  = $_POST['Msg'];
 
 
 if(empty($From))
 {                  
      $Nada.="Email field is empty !<br>";
 }
 if(empty($Msg))
 {
      $Nada.="Message field is empty !<br>";
 }
 $noway = "$Nada" ;
 
 if(empty($Nada) &&  
 eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From))
 {
  $ok = TRUE;
 }
 elseif(!empty($Nada) &&  
 eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From))
 {
  $ok = FALSE;
 }
 else
 {
  $ml = "Your email address is invalid !<br>";
  $ok = FALSE;
 }
// ------------------------------------------------------------------------- //
 
// ----------------------------- Upload Files ------------------------------ //
 $status    = '';
 $new_name  = '';
 $get_files = '';
 $all_names = '';
 
 for($i=0;$i<count($_FILES["fileup"]["tmp_name"]);$i++)
 {
  $name=$_FILES["fileup"]["name"][$i];
  $temp=$_FILES["fileup"]["tmp_name"][$i];
  $size=$_FILES["fileup"]["size"][$i];
  $type=$_FILES["fileup"]["type"][$i];
  $h = time();
  if($size > 0)
  {
   global $up_dir, $all_names;
   
   $new_name = $h .'-'. constant('timer') . '-' . $name;
   $new_name = strtr($new_name, " àäåéèêëïîôöùüûñ()[]'~$&%*@ç!?;,:/^?{}|+",  "_aaaeeeeiioouuun____________________E____" );  
   @move_uploaded_file($temp, $up_dir . $new_name);
   $all_names.= "$new_name\n";
  }
 }
// ------------------------------------------------------------------------- //
 
// ----------------------------- Upload Messages --------------------------- //
 if(empty($all_names))
 {
  $status   = "No files uploaded.";
 }
 else
 {
  $status    = "File(s) successfully uploaded.";
  $get_files = "\nGet the file(s): $up_full";
 }
//--------------------------------------------------------------------------- //
 
// ----------------------------- Mail Builder ------------------------------ //
 if($ok == "TRUE" )
 {
  $referer = $_SERVER["HTTP_REFERER"];
   $subject = "Feedback";
   $body    = "Origin: $referer\n";
   $body.="\n***** Results *****\n\n";
 
  if(count($_POST))
   {
   while(list($key, $val) = each($_POST))
   {
    $body.="$key : $val\n";
      }  
   }
 
   $body.="\n\n";
  $body.="Upload: $status\n";
  $body.="$all_names\n";
  $body.="$get_files\n";
   $body.="*************************\n";
   
        $body = stripslashes($body);
   
   if($online_isp == "1" )
   {
   if(!email("feedback",$dest,$sujet,$body))
   {
    print "An error occured during mail delivery <br>";
   }
   }
   else
  {
   $header  = '';
   $header.= 'From: "' . $Name . '" <' . $From . ">\r\n";
   $header.= 'Reply-To: "' . $Name . '" <' . $From . ">\r\n";
   $header.= "X-Mailer: PHP/" . phpversion();
 
   if(!mail($dest, $subject, $body, $header ))
   {
    print "An error occured during mail delivery <br>";
   }
  }
// ------------------------------------------------------------------------- //
 
// ---------------------------- Success Message ---------------------------- //
?>
<html><head><title>Success !</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFCC" background="atlas6[1].jpg">
<center><table width="450" border="0" cellspacing="0" cellpadding="0"><tr>
<td width="100%" bgcolor="#000000">
<table width="550" border="0" cellspacing="1" cellpadding="2"><tr>
<td colspan="2" bgcolor="#ffffff"><div align="center"><br>
    <DIV>
      <p>Merci   !</p>
      <p>Pour une r&eacute;ponse  rapide merci de nous contacter directement &agrave; l'adresse ci dessous</p>
      <p>huileargan@hotmail.fr</p>
    </DIV>
    <br><br>
<?php echo $status; ?>
<br><p>&nbsp;</p><p>&nbsp;</p>
<p><a href="http://www.huileargan.fr/"><strong>Retour</strong> &agrave; l'accueil </a></p>
<br></div>
<font size="-2"><a href="http://www.huileargan.fr/" target="_blank">Mail-it Now!</a></font>  
</tr></table>
</td></tr></table></center></body>
<!--This script sources from SkyMinds.Net (http://www.skyminds.net/) -->
</html>
<?php
 }
// ------------------------------------------------------------------------- //
 else
 {
// ----------------------------- Error Message ----------------------------- //
?>
<html><head><title>Error !</title></head><body bgcolor="white">
<center><table width="450" border="0" cellspacing="0" cellpadding="0"><tr>
<td width="100%" bgcolor="#000000">
<table width="550" border="0" cellspacing="1" cellpadding="2"><tr>
<td colspan="2" bgcolor="#ffffff"><div align="center"><br><b>
<?php  
echo $noway;
echo $ml;
?>
</b><p><br><br></p>
<p>&nbsp;</p><p>&nbsp;</p>
<p><a href='Javascript:history.go(-1)'>BACK</a></p><br></div>
<font size="-2"><a href="http://www.huileargan.fr/" target="_blank">Mail-it Now!</a></font>
</tr></table>
</td></tr></table></center></body>
<!--This script sources from SkyMinds.Net (http://www.skyminds.net/) -->
</html>
<?php
// ------------------------------------------------------------------------- //
 }  
}
else
{
 $num = 0;
 $upload_box = '';
 while($num < $UploadNum)
 {
  $num++;
  $upload_box.= "<tr><td><font size='-1' face='verdana'>&nbsp;&nbsp;&nbsp;File $num:</font></td><td><input name='fileup[]' type='file'></td>";
 }
?>
<html>
<head>
<title>Contact form</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#003399" vlink="#003399" alink="#003399"
topmargin=" 0" leftmargin="0" marginwidth="0" marginheight="0" style="border: 1">
<!--
################################################################
# Mail-it Now! Upload2Server 1.5.2                             #
# Script written by: Matthieu Biscay                           #
# Web: http://www.skyminds.net/source/                         #
# Contact: http://www.skyminds.net/contact/                    #
# Copyright SkyMinds.Net. All rights reserved.                 #
# This script is linkware. Please leave this header here.      #
# For commercial use or custom version contact us.             #
################################################################
-->
<table border="0" width="60%" align="center"><tr><td valign="top">
<table border="1" width="70%" bordercolor="#000000" bordercolordark="#FFFFFF" cols="1" align="center"><tr><td>  
<form action="<?php echo $_SERVER['file:///C|/Documents and Settings/meknine/Bureau/mail_it_now!_1_5_2/PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
<table border="0" bordercolor="#000000" height="100" align="center"><tr>  
<td height="5" width="218"><font size="2" face="Arial, Helvetica, sans-serif"><b>Email : </b></font></td><td height="5" width="249"><input type="text" size="30" maxlength="255" name="From" style="background-color: #CCCCCC;font: verdana; color: #000000; border: 0px;" value=""></td></tr><tr><td height="5" width="218"><font size="2" face="Arial, Helvetica, sans-serif">Name : </font></td><td height="5" width="249"><input type="text" size="30" name="Name" style="background-color: #CCCCCC;font: verdana; color: #000000; border: 0px;" value=""></td></tr></table>
<p align="center"><b><font size="2" face="Arial, Helvetica, sans-serif">Message : </font></b><br><textarea name="Msg" cols="45" rows="7"></textarea><br></p>
<table width="95%" border="0" align="center"><tr align="center"><td>&nbsp;</td>
<?php echo $upload_box; ?></tr></table>
<p align="center"><br>
<input type="reset" name="reset" value=" Clear ">
<input type="submit" name="submit" value=" Send " style="background-color:#CCCCCC">
</p>
</form>
<font size="-2"><a href="http://www.skyminds.net/source/" target="_blank">Mail-it Now!</a></font>
</td></tr></table>
</td></tr></table>
</body>
<!--This script sources from SkyMinds.Net (http://www.skyminds.net/)  -->
</html>
<?php } ?>
 
 
 
voila la page ou ce trouve le formulaire en question  
 
http://www.huileargan.fr/index3.php
 
Merci


Message édité par MEKNINE le 15-05-2008 à 16:05:19
Liens


Aller à :
Ajouter une réponse
  FORUM Infos-du-Net » Programmation » formulaire de contacte help svp
 

Liens