retour produit sur oscommerce

Eléphanteau du PHP | 30 Messages

07 août 2009, 12:08

Bonjour a tous,

Déja je vais vous donner l'adresse du site que je suis en train de construire : http://www.herboristeriesaintherem.com/
J'ai installé un contrib : "retour produit" qui s'installe sans probleme mais lorsque je veux envoyer le formulaire j'ai toujours un probleme de "date de reception de colis" est ce vous pourriez essayer. ( aller en bas de page pour avoir accès a cette page justement)

Je vous donne le code la page :
<?php
/*
  $Id: retour_produit.php,v 1.42 2009/07/12 12:17:07 hpdl Exp $
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2003 osCommerce
  Released under the GNU General Public License
  Retour produit create by Artefaxaudio.com 
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_RETOUR_PRODUIT);

  
    // Couleur du texte des champs si erreur saisie utilisateur
$color_font_warn="#CD0000";
// Couleur de fond des champs si erreur saisie utilisateur
$color_form_warn="#969696";
// Ne rien modifier ci-dessous si vous n’êtes pas certain de ce que vous faites !
$list['choix']=array("Un échange","  Un remboursement ");
if(isset($_POST['submit'])){
	$erreur="";
	// Nettoyage des entrées
	while(list($var,$val)=each($_POST)){
	if(!is_array($val)){
		$$var=strip_tags($val);
	}else{
		while(list($arvar,$arval)=each($val)){
				$$var[$arvar]=strip_tags($arval);
			}
		}
	}
	// Formatage des entrées
	$nom=trim(ucwords(eregi_replace("[^a-zA-Z0-9éèàäö\ -]", "", $nom)));
	$email=strip_tags(trim($email));
	$Ncmd=trim(eregi_replace("[^0-9\ +]", "", $Ncmd));
	$Ntel=trim(eregi_replace("[^0-9\ +]", "", $Ntel));
	$dateR=trim(eregi_replace("[^0-9\ +]", "", $dateR));
	// Verification des champs
	if(strlen($nom)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Votre nom : &raquo; est vide ou incomplet.</span>";
		$errnom=1;
	}
	if(strlen($email)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Votre adresse E-Mail : &raquo; est vide ou incomplet.</span>";
		$erremail=1;
	}else{
		if(!ereg('^[-!#$%&\'*+\./0-9=?A-Z^_`a-z{|}~]+'.
		'@'.
		'[-!#$%&\'*+\/0-9=?A-Z^_`a-z{|}~]+\.'.
		'[-!#$%&\'*+\./0-9=?A-Z^_`a-z{|}~]+$',
		$email)){
			$erreur.="<li><span class='txterror'>La syntaxe de votre adresse e-mail n'est pas correcte.</span>";
			$erremail=1;
		}
	}
	if(strlen($Ncmd)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Votre numéro de commande : &raquo; est vide ou incomplet.</span>";
		$errNcmd=1;
	}else{
		if(!ereg('^[0-9]{4,}$',
		$Ncmd)){
			$erreur.="<li><span class='txterror'>La syntaxe de votre N° de commande n'est pas correcte.</span>";
			$errNcmd=1;
		}
	}
	if(strlen($Ntel)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Votre numéro de téléphone : &raquo; est vide ou incomplet.</span>";
		$errNtel=1;
	}else{
		if(!ereg('^[0-9]{10,}$',
		$Ntel)){
			$erreur.="<li><span class='txterror'>La syntaxe de votre N° de telephone n'est pas correcte.</span>";
			$errNtel=1;
		}
	}
	if(strlen($dateR)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Date de réception du colis par vos soins : &raquo; est vide ou incomplet.</span>";
		$errdateR=1;
	}
	if($choix==""){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Vous souhaitez : &raquo; n'a pas été défini.</span>";
		$errchoix=1;
	}
	if(strlen($motif)<2){
		$erreur.="<li><span class='txterror'>Le champ &laquo; Veuillez entrer le détail du motif de votre demande de retour dans la case ci-dessous : &raquo; est vide ou incomplet.</span>";
		$errmotif=1;
	}
//ini_set('display_errors','1');	
if($erreur==""){

	
	   // Création du message
   
		//debut variable
		$to    = " $email ";
		$from = '' . STORE_OWNER_EMAIL_ADDRESS . '';
		$Subject = "Demande de retour client par $nom pour la commande n° $Ncmd";
		$JOUR  = date("Y-m-d"); 
		$HEURE = date("H:i"); 
		$entete_http = '' . ENTETE_HTTP . '' ;
		$style_css = '' . STYLE_CSS . '' ;
		$mail_logo = '' . MAIL_LOGO . '' ;
		$store_name = '' . STORE_NAME . '';
		$msg_auto = '' . MSG_AUTO . '';
		$msg_demande = '' . MSG_DEMANDE . '';
		$msg_merci = '' . MSG_MERCI . '';
		$footer = '' . MAIL_FOOTER . '';
		//fin variable

		$mail_Data = "";
		$mail_Data .= "<html> \n"; 
		$mail_Data .= "<head> \n"; 
		$mail_Data .= " $entete_http \n";
		$mail_Data .= "<title> Subject </title> \n"; 
		$mail_Data .= "</head> \n";		
		$mail_Data .= "<body> \n";
		$mail_Data .= "	<table width=\"784\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#f8f8f9\">";
		$mail_Data .= "		<tr>";
		$mail_Data .= " 		<td><div align=\"center\">$mail_logo</div></td> <br> \n";
		$mail_Data .= "		</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>Cher $nom, <br></td><br> \n";
		$mail_Data .= "  	</tr><br> \n"; 
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>$msg_auto</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>$msg_demande</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>$msg_merci</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; Nom du client : $nom</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; Adresse E-Mail du client: $email</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; N° de la cmde : $Ncmd</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; N° de tél du client : $Ntel</td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; Date de réception du colis : $dateR </td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; Le client souhaite : ".$list['choix'][$choix]." </td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td>&#149;&nbsp; Motif de la demande de retour :</td> <br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "  	 <tr class=\"infoBoxContents\">";
		$mail_Data .= "    		<td border=\"1\"><font color=\"#548c48\"> $motif </font><br><br><br></td><br> \n";
		$mail_Data .= "  	</tr><br> \n";
		$mail_Data .= "		<tr>";
		$mail_Data .= " 		<td>$footer</td>";
		$mail_Data .= "		</tr><br> \n";
		$mail_Data .= "</body> \n"; 
		$mail_Data .= "</HTML> \n";

		$headers  = "MIME-Version: 1.0 \n"; 
		$headers .= "Content-type: text/html; charset=iso-8859-1 \n"; 
		$headers .= "From: $from  \n"; 
		$headers .= "Disposition-Notification-To: $from  \n"; 	

		// Message de Priorité haute 
		// ------------------------- 
		$headers .= "X-Priority: 1  \n"; 
		$headers .= "X-MSMail-Priority: High \n"; 
		
		if(mail("".$from." ".$email."", $Subject, stripslashes($mail_Data), $headers)){
			$ok_mail="true";
		}else{
			$erreur.="<li><span class='txterror'>Une erreur est survenue lors de l'envoi du message, veuillez refaire une tentative.</span>";
		}
	}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<link rel="stylesheet" type="text/css" href="jqueryslidemenu.css" />

<!--[if lte IE 7]>
<style type="text/css">
html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="jqueryslidemenu.js"></script>

<script type="text/javascript" src="script/js/lib/jquery/jquery-1.3.2.js"></script>
	<script type="text/javascript">
	$(function() {
		$("#envoyer").click(function(){
				valid = true;
				if($("#nom").val() == "" ){
					$("#nom").next(".error-message").fadeIn().text("Veuillez entrer votre nom et prénom.");
					valid = false;
				}
						else if(!$("#nom").val() .match(/^[a-z -]+$/i)) {
						 		$("#nom").next(".error-message").fadeIn().text("Veuillez entrer un nom et prénom valide.");
				}
				else{
					$("#nom").next(".error-message").fadeOut().text("");
				}
				if($("#email").val() == "" ){
					$("#email").next(".error-message").fadeIn().text("Veuillez entrer votre adresse email.");
					valid = false;
				}
						else if(!$("#email").val() .match(/^([a-zA-Z0-9]+(([\.\-\_]?[a-zA-Z0-9]+)+)?)\@(([a-zA-Z0-9]+[\.\-\_])+[a-zA-Z]{2,4})$/i)) {
						 		$("#email").next(".error-message").fadeIn().text("Veuillez entrer une adresse email valide.");
				}
				else{
					$("#email").next(".error-message").fadeOut();
				}
				if($("#Ncmd").val() == "" ){
					$("#Ncmd").next(".error-message").fadeIn().text("Veuillez entrer votre N° de commande (4 chiffres minimum).");
					valid = false;
				}
						else if(!$("#Ncmd").val() .match(/^[0-9]{4,}$/)) {
						 		$("#Ncmd").next(".error-message").fadeIn().text("Veuillez entrer un N° de commande valide (4 chiffres minimum).");
				}
				else{
					$("#Ncmd").next(".error-message").fadeOut();
				}
				if($("#Ntel").val() == "" ){
					$("#Ntel").next(".error-message").fadeIn().text("Veuillez entrer votre N° de télephone (10 chiffres minimum).");
					valid = false;
				}
						else if(!$("#Ntel").val() .match(/^[0-9]{10,}$/)) {
						 		$("#Ntel").next(".error-message").fadeIn().text("Veuillez entrer un N° de télephone valide (10 chiffres minimum).");
				}
				else{
					$("#Ntel").next(".error-message").fadeOut();
				}
				if($("#dateR").val() == "" ){
					$("#dateR").next(".error-message").fadeIn().text("Veuillez entrer votre date de reception du colis.");
					valid = false;
				}
						else if(!$("#dateR").val() .match()) {
						 		$("#dateR").next(".error-message").fadeIn().text("Veuillez entrer une date valide sous ce format (jj-mm-aa).");
				}
				else{
					$("#dateR").next(".error-message").fadeOut();
				}
				if($("#motif").val() == "" ){
					$("#motif").next(".error-message").fadeIn().text("Veuillez entrer votre motif de retour.");
					valid = false;
				}
				else{
					$("#motif").next(".error-message").fadeOut();
				}
			return valid;
		});		
	});
	</script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" summary="" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" summary="" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'retour_produit.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
       <td>
	   <table border="0" summary="" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="2">
              <tr>
            <td class="main"><? if($ok_mail=="true"){ ?>
    	  <tr>
        <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
	
<? 
	}
		else
	{ 
?>
		<form id="formreturn" action="<? echo $PHP_SELF ?>" method="post" name="Form" >
		
     	 <table width='100%' border='0' cellspacing='1' cellpadding='1'>
<?
     if($erreur){ 
?>

		<tr>
			<td colspan='2' bgcolor='red'><span class='txterror'><font color='white'><b>&nbsp;ERREUR, votre message n'a pas été transmis</b></font></span></td>
		</tr>
	    <tr>
			<td colspan='2'><ul><? echo $erreur ?></ul></td>
		</tr>
<?
   }
?>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
		 	<td class="main"><?php echo TEXT_INFORMATION; ?></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
			<td class="main"><?php echo TEXT_RETOUR; ?></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
		   <td align='left'><?php echo ENTRY_NAME; ?></td>
		</tr>
		<tr>
		   <td><input id="nom" title="S'il vous plaîs, veuillez entrer vos nom et prénom (un minimum de 5 caractères est requis)." class="{required:true,minlength:5}" type="text" name="nom" style=" width:200 <? if($errnom==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;"  value="<? echo stripslashes($nom); ?>" size="24" border="0" ><span class="error-message">erreur</span></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
        <tr>
		   <td align='left'><?php echo ENTRY_EMAIL; ?></td>
		</tr>
		<tr>
		   <td><input id="email" title="S'il vous plaîs, veuillez entrer votre adresse email." class="required email" type="text" name="email" style=" width:200 <? if($erremail==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;"  value="<? echo stripslashes($email); ?>" size="24" border="0"  ><span class="error-message">erreur</span></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
        <tr> 
		   <td align='left'><?php echo ENTRY_NUMBER_CMD; ?></td>
		</tr>
		<tr>
		   <td><input id="Ncmd" title="S'il vous plaîs, veuillez entrer votre numéro de commande." class"digits" minlength"4" type="text" name="Ncmd" style=" width:200 <? if($errNcmd==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;"  value="<? echo stripslashes($Ncmd); ?>"  size="24" border="0" ><span class="error-message">erreur</span></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
			<td align='left'><?php echo ENTRY_NUMBER_PHONE; ?></td>
		</tr>
		<tr>
			<td><input id="Ntel" title="S'il vous plaîs, veuillez entrer votre numéro de téléphone." class"digits" minlength"10" type="text" style=" width:200 <? if($errNtel==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;" name="Ntel" value="<? echo stripslashes($Ntel); ?>" size="24" border="0" ><span class="error-message">erreur</span></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
			<td align='left'><?php echo ENTRY_DATE_RECEPTION; ?></td>
		</tr>
		<tr>
			<td><input id="dateR" title="S'il vous plaîs, veuillez entrer la date de réception de votre colis." class"date" name="dateR" type="text" style=" width:200 <? if($errdateR==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;"  value="<? echo stripslashes($dateR); ?>" size="24" border="0" ><span class="error-message">erreur</span></td>
		</tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
			<td align='left'><?php echo ENTRY_CHOIX; ?></td>
		<tr>
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
			<td>
				<table border='0' cellspacing='0' cellpadding='0'>
					<? for($id=0;$id<count($list['choix']);$id++){
						if($id==$choix){$ct="checked";}
				print("<tr><td><input ".$ct." type='radio' name='choix' value=".$id." border='0'></td><td><span class='txtform'>".$list[choix][$id]."</span></td></tr>");
unset($ct);
}
?></table>
			</td>
		</tr>
		
		<tr>
        	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      	</tr>
		<tr>
			<td align='left'><?php echo ENTRY_ENQUIRY; ?></td>
		</tr>
		<tr>
			<td><textarea id="motif" title="S'il vous plaîs, veuillez entrer votre message." class="required" name="motif" style=" <? if($errmotif==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);} ?>;" rows="6" cols="100" ><? echo$motif ?></textarea><span class="error-message">erreur</span></td>
		</tr>
		<tr>
		 	<td colspan='2'><span class='txterror'>Les champs marqué d'un <font color="red">*</font> sont obligatoires</span></td>
		</tr>
		
		<td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="2">
		<tr>
		 	<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><input title="Envoyer la demande de retour." type="submit" name="submit" value="Envoyer" border="0" id="envoyer"></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		</tr>
	  </table></td>
	</table>
</form>

<? 
	}
?>
			</td><td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
           </table>
		</td>
		</tr>
		</table>
		</td>
		</tr>
		<tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" summary="" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
merci

ViPHP
ViPHP | 2291 Messages

07 août 2009, 16:24

Quoi comme problème :?:
Parce que moi je voie affciher Vendredi 07 août 2009
ImageCe que l'on apprend par l'effort reste toujours ancré beaucoup plus longtemps.

Eléphanteau du PHP | 30 Messages

07 août 2009, 18:45

non j'ai du mal m'exprimer il faut aller sur la page "retour produit" en cliquant sur le lien tout en bas "Demande de retour produit"

en fait va directement là :
http://www.herboristeriesaintherem.com/ ... roduit.php

et essai d'envoyer le formulaire

ViPHP
ViPHP | 2291 Messages

07 août 2009, 19:27

Bin je vais avoir du mal sans numéro de commande et autre info.
Essaye d'être plus clair parce que là c'est mal parti comme sujet. :wink:
ImageCe que l'on apprend par l'effort reste toujours ancré beaucoup plus longtemps.

Eléphanteau du PHP | 30 Messages

07 août 2009, 19:35

N'importe. J'ai créer une commande et j'ai été sur la page de retour pour rentrer les bonnes valeurs et niet ca ne marche pas. Donc j'ai essayer de mettre des valeurs bidons mais avec un bon mail et pareil.

essaye pour voir.

Avatar du membre
Modérateur PHPfrance
Modérateur PHPfrance | 10684 Messages

07 août 2009, 22:32

C'est un problème dans le contrôle javascript du formulaire pour ton champ date :
else if(!$("#dateR").val() .match()) {
      $("#dateR").next(".error-message").fadeIn().text("Veuillez entrer une date valide sous ce format (jj-mm-aa).");
}
T'as pas renseigné le masque de la fonction match() pour vérifier le format de ta date.... :)
(par ailleurs les formats attendus sont pas les mêmes dans le libellé (jj-mm-aaaa) et le message d'erreur (jj-mm-aa))
Ce n'est pas en améliorant la bougie que l'on a inventé l'ampoule...