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 :
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éservés.</div>
<div class="footer-info-right"><a href="http://www.****-****.fr/"></a> Graphique By TPX </div>
</div>
</div>
<div class="cleaner"> </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
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 : [b]Parse error: syntax error, unexpected T_VARIABLE in /home/teamlsxionix/html/login_contacts.php on line 13[/b]
La ligne 13 est :
[code]$email = $_POST["email"];[/code]
Bref , je ne vois pas quelle variable j'ai oublier .. voici le code PHP de la page du formulaire :
[code] <?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éservés.</div>
<div class="footer-info-right"><a href="http://www.****-****.fr/"></a> Graphique By TPX </div>
</div>
</div>
<div class="cleaner"> </div>
</div>
</div>
</body>[/code]
Et le code de login_contacts.php :
[code] <?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)
?>[/code]
La deuxième erreur est relié au Captcha : [non-resolus] [b]
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[/b]
Votre aide me serais d'une grande et merveilleuse utilité .. Un grand MERCI a tous ceux qui pourrait m'aider .
Cordialement ,
xNr