par
degat » 15 juin 2016, 19:18
Bonjour,
J'ai un parse erreur sur script "traitement.php" si vous avez une idée.... merci par avance.
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>captcha</title>
</head>
<body>
<?php
if($_POST['captcha'])[
if ($_POST['captcha']==$_SESSION['captcha'])
echo 'Code captcha correct! <a href="/index.php">OK</a>';
else echo 'Le captcha rentré est invalide ! <a href="/index.php">Recommencez</a>';
]
?>
</body>
</html>
resultat sur mon wamp:
! ) Parse error: syntax error, unexpected 'if' (T_IF), expecting ']' in C:\wamp\www\cours formulaire et captcha\verification.php on line 18
c grave docteur?
Bonjour,
J'ai un parse erreur sur script "traitement.php" si vous avez une idée.... merci par avance.
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>captcha</title>
</head>
<body>
<?php
if($_POST['captcha'])[
if ($_POST['captcha']==$_SESSION['captcha'])
echo 'Code captcha correct! <a href="/index.php">OK</a>';
else echo 'Le captcha rentré est invalide ! <a href="/index.php">Recommencez</a>';
]
?>
</body>
</html>
resultat sur mon wamp:
! ) Parse error: syntax error, unexpected 'if' (T_IF), expecting ']' in C:\wamp\www\cours formulaire et captcha\verification.php on line 18
c grave docteur?