Topic: problem with a little captcha in PHP

Hi,

I have a problem with a little captcha in PHP.

Here is the code:

<?php
if(!empty($_POST))
{
if(!empty($_POST['verif']&&$_POST['verif']=='12')
{
// contactform
}
else
{
// answer the question please
}
}
else
{
echo '<form method="post" action="#">
// les champs du formualire + celui-ci :
Question : combien font 3 multiplié par 4 ?
<input type="text" name="verif" />

<input type="submit" value="Envoyer les données" />
</form>';
}
?>

It seems that on line 4 there is a problem with a:
(
)
[
]

Do you know where ?!

Re: problem with a little captcha in PHP

if (!empty($_POST['verif']) && $_POST['verif'] == '12')

Re: problem with a little captcha in PHP

Hi, thanks now it's OK smile
I tried this solution 1.000 X but it didn't works! I suppose I had a problem with my "cache"...