gcvoiron Posté 1 Avril 2006 Partager Posté 1 Avril 2006 Bonjour, je suis en train de faire un site, à l'aide d'un script tout fait que j'ai acheté. Tout marche, sauf la page d'inscription. Quelqu'un pourrait me dire d'où vient l'erreur? Lorsque je mets la page d'origine, l'inscription est validée, lorsque j'essais la page du nouveau kit grafik, l'inscritpion se bloque... Merci d'avance pour votre aide, j'en ai vraiment besoin! Voici le code d'origine, qui marche : <?phpif($name && $prename && $password && $email && $url){$sid=mt_srand((double)microtime()*1000000);$sid=md5(str_replace('.', '', getenv('REMOTE_ADDR') + mt_rand(100000, 999999)));require('./prepend.inc.php');if(account_add($name, $prename, $password, $email, $url, 2, $points_register, $sid, $referer)){mail($email, $email_welcome_title, $email_welcome, $email_header);mail($email_notifynewmember, $email_notifynewmember_title, $email_notifynewmember_msg, $email_header);header("Location: $url_register_succesfull");exit;}}?><?phprequire('./prepend.inc.php');?><?include("./templates/main-header.txt");?> <div align="center"> <p><br> <font size="3"> <?phpif($name && $prename && $email && $url && $password)echo "Account with e-mail $email already exists!";?> <span style="font-family: verdana; font-size: 18px; font-weight: bold"><u> Formulaire d'inscription </u> </span></p> </div> <form method="post" action="./register.php"> <div align="center"> <?php if($referer){ ?> <input type="hidden" name="referer" value="<?php echo $referer ?>"> <?php } ?> <br> <span style="font-family: Verdana; font-weight: bold; font-size: 10px"><br> <u>ATTENTION :</u> AOL refuse les mails provenant de Boost-Trafic. Ne mettez pas une adresse mail AOL car vous ne recevrez pas le lien pour activer votre compte. Merci de votre compréhension. </span></div> <table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><span style="font-family: verdana; font-size: 10px"><b>NOM</b></span></td><td><input type="text" name="name" value="<?php echo stripslashes($name); ?>"></td></tr><tr><td><span style="font-family: verdana; font-size: 10px"><b>Prénom</b></span></td><td><input type="text" name="prename" value="<?php echo stripslashes($prename); ?>"></td></tr><tr><td height="30"><span style="font-family: verdana; font-size: 10px"><b>E-mail:</b></span></td><td height="30"><input type="text" name="email" value="<?php echo stripslashes($email); ?>"></td></tr><tr><td><span style="font-family: verdana; font-size: 10px"><b>Site web </b></span></td><td><input type="text" name="url" value="http://<?php echo stripslashes($url); ?>"></td></tr><tr><td><span style="font-family: verdana; font-size: 10px"><b>Mot de passe</b></span></td><td><input type="password" name="password" value="<?php echo stripslashes($password); ?>"></td></tr><tr><td colspan="2"> <div align="center"><br> <br> <input type="submit" value="Envoyer"> </div></td><b></tr></table></form><?include("./templates/main-footer.txt");?> Et le voici intégré dans le nouveau kit grafik, et ça ne marche pas : <?phpif($name && $prename && $password && $email && $url){$sid=mt_srand((double)microtime()*1000000);$sid=md5(str_replace('.', '', getenv('REMOTE_ADDR') + mt_rand(100000, 999999)));require('./prepend.inc.php');if(account_add($name, $prename, $password, $email, $url, 2, $points_register, $sid, $referer)){mail($email, $email_welcome_title, $email_welcome, $email_header);mail($email_notifynewmember, $email_notifynewmember_title, $email_notifynewmember_msg, $email_header);header("Location: $url_register_succesfull");exit;}}?><?phprequire('./prepend.inc.php');?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><!-- InstanceBegin template="/Templates/accueil.dwt.php" codeOutsideHTMLIsLocked="false" --><head><!-- InstanceBeginEditable name="doctitle" --><title>Inscription sur Boost-Trafic</title><!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"><!--body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(images/bg.gif);}--></style><link href="styles.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.Style2 {font-family: Verdana; font-weight: bold; font-size: 12px; }.Style8 { color: #000000; font-weight: bold; font-family: Verdana;}.Style13 { font-weight: bold; font-family: Verdana;}.Style14 {color: #000000}.Style15 { font-weight: bold; font-family: Verdana;}.Style16 { font-weight: bold; font-family: Verdana;}.Style18 { font-weight: bold; font-family: Verdana;}.Style19 { font-weight: bold; font-family: Verdana;}.Style20 { font-weight: bold; font-family: Verdana;}.Style21 { font-weight: bold; font-family: Verdana;}.Style23 { font-weight: bold; font-family: Verdana;}.Style24 { font-weight: bold; font-family: Verdana;}.Style25 { font-weight: bold; font-family: Verdana;}.Style26 { font-weight: bold; font-family: Verdana;}.Style28 { font-weight: bold; font-family: Verdana;}.Style29 { font-weight: bold; font-family: Verdana;}.Style30 { font-weight: bold; font-family: Verdana;}.Style37 {font-size: 12px}.Style40 {color: #FF0000}a:link { color: #666666; text-decoration: none;}a:visited { text-decoration: none;}a:hover { text-decoration: underline; color: #000000;}a:active { text-decoration: none;}.Style43 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; font-size: 12px;}.Style44 {font-family: Verdana; font-weight: bold; font-size: 18px; }.Style46 {font-family: Verdana}.Style47 {color: #000000; font-weight: bold; font-size: 11px; }.Style48 {font-style: normal; font-weight: normal; color: #383845; font-size: 11px;}.Style52 { font-size: 14px; font-weight: bold; color: #000000;}.Style53 { font-weight: bold; font-size: 12px;}--></style><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --></head><body><table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="bordure"> <tr> <td><table width="760" height="149" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="760" height="84"><img src="images/header.jpg" width="760" height="84"></td> </tr> <tr> <td height="43" background="images/menuBg.gif"> <table width="753" height="43" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="304"><img src="images/menuBg.gif" width="139" height="43"></td> <td width="5"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="90" class="menu"><div align="center"> <table width="24" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td height="25" valign="top"><a href="http://www.boost-trafic.com">Accueil</a></td> </tr> </table> </div></td> <td width="5"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="90" class="menu"><div align="center"> <table width="24" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td height="24" valign="top"><a href="http://www.boost-trafic.com/register.php">Inscription</a></td> </tr> </table> </div></td> <td width="5"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="90" class="menu"><div align="center"> <table width="24" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td height="25" valign="top"><a href="http://www.boost-trafic.com/reglement.php">Réglement</a></td> </tr> </table> </div></td> <td width="5"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="90" class="menu"><div align="center"> <table width="24" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td height="24" valign="top"><a href="http://www.boost-trafic.com/faq.php">FAQ</a></td> </tr> </table> </div></td> <td width="5"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="90" class="menu"><div align="center"> <table width="24" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td height="25" valign="top"><a href="http://boost-trafic.forumpro.fr" target="_blank">Forum</a></td> </tr> </table> </div></td> <td width="9"><img src="images/menuSeparateur.gif" width="4" height="43"></td> <td width="95" class="menu"><table width="87" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="8"><img src="images/spacer.gif" width="30" height="8"></td> </tr> <tr> <td width="87" height="25" valign="top"><a href="http://www.boost-trafic.com/contact.php">Contact</a></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td height="22"><img src="images/inter.gif" width="760" height="22"></td> </tr> </table> <table width="760" height="57" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="137" height="19" valign="top" background="images/menuGaucheBG.gif" class="bgnorepeatx"><table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"> <p class="menu Style43 Style14"><u>Menu principal </u></p> </div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="2" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="21" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="19" class="menu"> </td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="27" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="left" class="soustitre"><img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/register.php">Inscription</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/achats.php">Achats de crédits</a><a href="#67" class="menu"><br> </a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"> </td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="27" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"> <p class="menu Style43"><u>Informations</u></p> </div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"> </td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="left" class="soustitre"><img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/caracterisiques.php">Caractéristiques</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/statistiques.php">Statistiques</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/top10.php">TOP 10</a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"> </td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"><u><span class="menu Style43">Concours</span></u></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center" class="soustitre"> </div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="justify" class="soustitre"><img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/banniere.php">Bannière</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://www.boost-trafic.com/parrainage.php">Parrainage</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://boost-trafic.forumpro.fr/viewforum.forum?f=4" target="_blank">Concours du mois</a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"><a href="#" class="menu"></a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"><u><span class="menu Style43">Partenaires</span></u></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"><a href="#" class="menu"></a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="left"><a href="#" class="menu"></a><span class="menu Style43"><span class="soustitre"><img src="images/puce.gif" width="8" height="11"><a href="http://www.benefweb.com" target="_blank">Benefweb</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://www.benefweb.com/forum" target="_blank">Forum Parrainage</a><br> <img src="images/puce.gif" width="8" height="11"><a href="http://pierregui54.free.fr" target="_blank">Astuces Prizee...</a></span></span></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> <table width="137" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="127" height="23" class="menu"><div align="center"><a href="#" class="menu"></a></div></td> <td width="10" height="25" rowspan="2"><img src="images/menuGaucheObjet2.gif" width="10" height="25"></td> </tr> <tr> <td height="2"><img src="images/menuGaucheObjet1.gif" width="127" height="2"></td> </tr> </table> </td> <td width="476" valign="top" background="images/centreBG.gif" class="bgnorepeatx"><!-- InstanceBeginEditable name="EditRegion3" --> <div align="center"> <p><br> <font size="3"> <?phpif($name && $prename && $email && $url && $password)echo "Account with e-mail $email already exists!";?> <span style="font-family: verdana; font-size: 18px; font-weight: bold"><u> Formulaire d'inscription </u> </span></font></p> </div> <form method="post" action="./register.php"> <div align="center"> <font size="3"> <?php if($referer){ ?> <input type="hidden" name="referer" value="<?php echo $referer ?>"> <?php } ?> <br> <span style="font-family: Verdana; font-weight: bold; font-size: 10px"><br> <u>ATTENTION :</u> AOL refuse les mails provenant de Boost-Trafic. Ne mettez pas une adresse mail AOL car vous ne recevrez pas le lien pour activer votre compte. Merci de votre compréhension. </span></font></div> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>NOM</b></span></font></td> <td><font size="3"> <input type="text" name="name" value="<?php echo stripslashes($name); ?>"> </font></td> </tr> <tr> <td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Prénom</b></span></font></td> <td><font size="3"> <input type="text" name="prename" value="<?php echo stripslashes($prename); ?>"> </font></td> </tr> <tr> <td height="30"><font size="3"><span style="font-family: verdana; font-size: 10px"><b>E-mail:</b></span></font></td> <td height="30"><font size="3"> <input type="text" name="email2" value="<?php echo stripslashes($email); ?>"> </font></td> </tr> <tr> <td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Site web </b></span></font></td> <td><font size="3"> <input type="text" name="url" value="http://<?php echo stripslashes($url); ?>"> </font></td> </tr> <tr> <td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Mot de passe</b></span></font></td> <td><font size="3"> <input type="password" name="password2" value="<?php echo stripslashes($password); ?>"> </font></td> </tr> <tr> <td colspan="2"><div align="center"><font size="3"><br> <br> <input name="submit" type="submit" value="Envoyer"> </font></div></td> </tr> </table> </form> <!-- InstanceEndEditable --></td> <td width="147" valign="top" background="images/menuDroitBG.gif" class="bgnorepeatx"><p><img src="images/votreCompte.gif" width="147" height="16"></p> <form name="form1" method="post" action="login.php"> <table width="132" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><div align="center" class="soustitre">Mail</div></td> <td><div align="center"><strong><font size="2" face="Verdana"> <input type="text" name="email" size="11"> </font></strong></div></td> </tr> <tr> <td><div align="center" class="soustitre">Pass</div></td> <td><div align="center"><strong><font size="2" face="Verdana"> <input type="password" name="password" size="11"> </font></strong></div></td> </tr> <tr> <td colspan="2" align="center"><strong><font size="2" face="Verdana"> <input name="image" type="image" src="images/ok.gif"> <br> <a href="http://www.boost-trafic.com/passe-perdu.php" class="soustitre">Mot de passe perdu???</a><br> <br> </font></strong></td> </tr> </table> </form> <p> </p> <p> </p></td> </tr> <tr> <td height="9" colspan="3"><img src="images/footer.gif" width="760" height="19" border="0" usemap="#Map"> <map name="Map"> <area shape="rect" coords="467,3,611,15" href="http://www.kitgrafik.com/graphistes/index-g-25.html" target="_blank" alt="Kitgrafik.com"> </map></td> </tr> <tr> </tr> </table> <table width="760" height="57" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="10" colspan="3" bgcolor="#706F7E"><div align="center"> <p> <script language="JavaScript1.1"><!--h = new Date();d = document;s = '<A HREF="http://stats.webaix.com/stat.php?num_site=1141389222" TARGET="_blank"><img border=0 src="http://stats.webaix.com/image.php?num_site=1141389222';s += '&hour=' + h.getHours() + 'x' + h.getMinutes() + 'x' + h.getSeconds();if(parseFloat(navigator.appVersion)>=4){sc=screen;s += '&rw=' + sc.width + '&rh=' + sc.height;}s += '&ref=' + d.referrer.replace('&', '$') + '" title="Mesurez votre audience"></A>';d.writeln(s);//--> </script> </p> <p><a href=http://www.hit-parade.com/hp.asp?site=a463798 target=_top><img src=http://loga.hit-parade.com/logohp1.gif?site=a463798 title="Hit-Parade" width=77 height=15 border=0></a></p> </div></td> </tr> </table> </td> </tr></table></body><!-- InstanceEnd --></html> <Edit Arlette : J'ai modifié le titre. Ici : L'urgent est fait, l'impossible est en cours, pour les miracles : 48 heures de délai. Il est donc inutile d'alerter en écrivant : Urgent> Lien vers le commentaire Partager sur d’autres sites More sharing options...
iNCiTE Web Posté 2 Avril 2006 Partager Posté 2 Avril 2006 C'est quel type d'erreur ? il y a un message ? quelle ligne ? ça ne va pas about ? Bref il en faut un peu plus Lien vers le commentaire Partager sur d’autres sites More sharing options...
gcvoiron Posté 2 Avril 2006 Auteur Partager Posté 2 Avril 2006 Lorsque j'utilise le formulaire d'inscription d'origine, l'inscription est validée, et une page nouvelle s'ouvre pour dire qu'un lien d'activation de compte a été envoyé à l'adresse mail indiquée, et qu'il faut valider le compte. Avec le nouveau formulaire, après avoir cliqué sur validé, le formulaire reste affiché... La page disant qu'un faut valider le compte ne s'ouvre pas. Lien vers le commentaire Partager sur d’autres sites More sharing options...
Sujets conseillés
Veuillez vous connecter pour commenter
Vous pourrez laisser un commentaire après vous êtes connecté.
Connectez-vous maintenant