Hi I am a beginner in programming with PHP and while I was trying to do some form validation I got this error:
“Fatal error: Can’t use function return value in write context in C:\xampp\htdocs\Web\Proiecte\Cristina\formular.php on line 67”
This is my HTML for this section:
<form id ="fabrica" action="formular.php" method="post">
<input type="checkbox" name="unu"/>
</form>
And this is my php code:
if(isset($_POST('unu'))){
echo "<tr>";
echo "<td>a mers</td>";
echo "</tr>";
}
What am I doing wrong?
_POST is an associative array (a superglobal)
You can access its content using the regular array syntax
instead of