[NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : [NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

Re: [NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

par Zoubi » 11 août 2010, 13:36

Vous voulez savoir ou était mon erreur?
 <?php
$cryptinstall="crypt/cryptographp.fct.php";
include $cryptinstall;  
 ?>

Deux espaces en trop....................... Et c'est pour ça que je me prend la tête depuis une heure :evil:

Re: [NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

par Zoubi » 11 août 2010, 13:31

Bonjour,

J'ai exactement le même problème, et ça commence fortement à me taper sur le système ( cela fait plus d'une heure que je tourne en rond ).

Tous mes fichiers sont bien encodés en UTF-8 ( ça fait bien 15 fois que je le fais sous Vim ).

Merci d'avance.

Re: [NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

par xNr » 07 avr. 2010, 21:31

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/teamlsxionix/html/contacts.php:1) in /home/teamlsxionix/html/crypt/cryptographp.fct.php on line 3

Autre erreur encore ..

La session_start() est bien en haut de cryptographp.fct.php (

Code : Tout sélectionner

<?php if(session_id() == "") session_start(); $_SESSION['cryptdir']= dirname($cryptinstall);
[...])

cryptographp.fct.php est bien en UTF-8 sans BOM (normalement) et j'ai bien supprimer mes fichiers temporaires avant de réouvrir ma page internet ..

Que faire ?

Re: [NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

par SinBert » 07 avr. 2010, 20:49

Bonjour,

vérifie que dans ta page cryptographp.fct.php la fonction session_start() est bien la première instruction de ta page. Sinon, remonte la en haut de ta page.
En effet, Pour utiliser des sessions, session_start() doit être appelée avant d'afficher quoi que ce soit dans le navigateur.
Pour l'encodage, ça dépend de ton éditeur ; ça se trouve généralement dans les menu en haut, cherche un peu.
Si tu ne trouves pas, dis nous quel éditeur tu utilises ;)

Bonne fin de soirée. :)

EDIT :
je ne sais pas si ça peut t'aider mais en regardant les posts en dessous de la doc' de session_start, j'ai vu quelqu'un qui a eu le même souci que toi :
I corrected this problem by deleting all the files in the tmp directory of the webserver
Traduction approximative : J'ai corrigé ce problème en supprimant tous les fichiers dans le dossier tmp du navigateur.

Re: [NON RESOLUS] Formulaire + Captcha.

par xNr » 07 avr. 2010, 20:15

Merci devlo , vraiment bête la première erreur .. Comment puis-je voir si "cryptographp.fct.php" est encodé en UTF-8 avec ou sans BOM ?

Le formulaire marche qu'a moitié : une erreur est survenus : Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/teamlsxionix/html/login_contacts.php:1) in /home/teamlsxionix/html/crypt/cryptographp.fct.php on line 14 (la même que pour captcha)

Re: [NON RESOLUS] Formulaire + Captcha.

par devlop78 » 07 avr. 2010, 20:04

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/teamlsxionix/html/contacts.php:1) in /home/teamlsxionix/html/crypt/cryptographp.fct.php on line 14

Vérifie que ton fichier est bien encodé en UTF-8 sans BOM.

Re: [NON RESOLUS] Formulaire + Captcha.

par devlop78 » 07 avr. 2010, 20:00

il manque ";" à $message = $_POST["message"]

[NON RESOLUS] Formulaire [resolus] + Captcha [non-resolus]..

par xNr » 07 avr. 2010, 19:47

Bonjour , j'expose ici mes deux problèmes : cela fait maintenant plus de 5 heures que je cherche encore et encore sans trouver la moindre parcelle de solution ..

Problème 1 : [RESOLUS]

Histoire d'un formulaire avec comme erreur : Parse error: syntax error, unexpected T_VARIABLE in /home/teamlsxionix/html/login_contacts.php on line 13

La ligne 13 est :

Code : Tout sélectionner

$email = $_POST["email"];
Bref , je ne vois pas quelle variable j'ai oublier .. voici le code PHP de la page du formulaire :

Code : Tout sélectionner

<?php $cryptinstall="crypt/cryptographp.fct.php"; include $cryptinstall; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="WebRadio **** (57)" /> <META NAME="keywords" CONTENT="radio, *********, 57, webradio, ***, star, celebrité, webradio, ****, radio, dedicace, dédicace, tchat, chat, live, video, webcam"> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- CSS --> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection, tv" /> <link rel="stylesheet" href="css/style-print.css" type="text/css" media="print" /> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> <link rel="icon" type="image/png" href="favicon.png" /> <!--[if lt IE 7.]> <script defer type="text/javascript" src="http://tdconcepts.net/outils/pngfix.js"></script> <![endif]--> <title>**** - La radio<title/> </head> <body> <div id="wrapper"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><!-- Title --> <div class="title"> <div class="title-top"> <div class="title-left"> <div class="title-right"> <div class="title-bottom"> <div class="title-top-left"> <div class="title-bottom-left"> <div class="title-top-right"> <div class="title-bottom-right"> <h1><a href="index.html" title="Go to homepage"><img src="img/****o.png" alt="" border="0" /></a></h1> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Title end --></td> <td align="center" valign="bottom"> <img src="img/player.png" alt="ouvrir le player ****-****" border="0" usemap="#Map" /> </td> </tr> </table> <hr class="noscreen" /> <div class="content"> <div class="column-left"> <h3>MENU</h3> <a href="#skip-menu" class="hidden">Skip menu</a> <ul class="menu"> <li><a href="index-2.html" class="active" >Accueil</a></li> <li><a href="remerciements.html" >Remerciements</a></li> <li><a href="equipe.html" >L'Equipe</a></li> <li><a href="partenaires.html" >Partenaires</li> </a> <li><a href="prologue.html" >Prologue</a></li> <li class="last"><a href="contacts.html" >Contacts</a></li> <li class="last"> <a href="facebook.html"><img src="images/facebook.png" border="0"></a></li> </ul> </div> <div id="skip-menu"></div> <div class="column-right"> <div class="box"> <div class="box-top"></div> <div class="box-in"> <map name="Map" id="Map"> <area shape="rect" coords="78,105,291,133" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="poly" coords="9,14,9,14,9,71,61,68,61,46,88,46,96,10,62,2" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="circle" coords="177,38,32" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="circle" coords="316,36,33" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="rect" coords="5,75,67,94" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="rect" coords="128,76,222,93" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> <area shape="rect" coords="266,76,365,93" href="#" alt="" onClick="window.open('lecteur.html', 'lecteur', 'scrollbars=yes,width=780,height=350')" /> </map> <div id="contentForm"> <!-- The contact form starts from here--> <h2>Contactez Nous</h2> <br /> <script src="nicEdit.js" type="text/javascript"></script> <script type="text/javascript"> bkLib.onDomLoaded(function() { new nicEditor({buttonList : ['bold','italic','underline','strikeThrough','forecolor']}).panelInstance('message'); }); </script> <!--Error Message--> <form action="login_contacts.php?<?php echo SID; ?>" method="post"> <table> <tr><td> <div class="float-left">Nom : </div> <input name="nom" type="text" class="box" id="nom" size="30" value="" /> <div class="float-left"><br />Email : </div> <input name="email" type="text" class="box" id="email" size="30" value="" /> <div class="float-left"><br />Message : </div> <textarea name="message" cols="40" rows="3" id="message" class="box"></textarea><br /><br /> <div class="float-left" for="captcha">Recopiez les caractères suivant : <?php dsp_crypt(0,1); ?> </div> <!-- Submit Button--> <input type="text" name="code"></td></tr> <tr><td><input type="submit" name="submit" value="Envoyer"></td></tr> </table> </form> <!-- E-mail verification. Do not edit --> <!-- END CONTACT FORM --> </div> <!-- /contentForm --> </div> </div> <div class="box-bottom"> <hr class="noscreen" /> <div class="footer-info-left"><a href="index.html"> *****-*****</a>, 2010. Tous droits r&eacute;serv&eacute;s.</div> <div class="footer-info-right"><a href="http://www.****-****.fr/"></a> Graphique By TPX </div> </div> </div> <div class="cleaner">&nbsp;</div> </div> </div> </body>
Et le code de login_contacts.php :

Code : Tout sélectionner

<?php $cryptinstall="crypt/cryptographp.fct.php"; include $cryptinstall; ?> <?php if (chk_crypt($_POST['code'])) echo "Bravo"; else echo "Erreur"; ?> <?php $nom = $_POST["nom"]; $message = $_POST["message"] $email = $_POST["email"]; ?> <?php $to = "****@****.fr"; $objet = "****-**** : Contact Simple : $nom"; $message = "Nom : $nom Email : $email Message : $password"; mail ($to,$objet,$message) ?>
La deuxième erreur est relié au Captcha : [non-resolus]
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/teamlsxionix/html/contacts.php:1) in /home/teamlsxionix/html/crypt/cryptographp.fct.php on line 14


Votre aide me serais d'une grande et merveilleuse utilité .. Un grand MERCI a tous ceux qui pourrait m'aider .

Cordialement ,

xNr