<html><head></head><body><form action="index.php" method="post"> Imie: <input type="text" name="imie" /> Wiek: <input type="text" name="wiek" /> <input type="checkbox" name="cb" /> <input type="submit" value="zatwierdz!" /> </form> <?php if $_POST['cb'] == 1 { } else { } ?> </body></html>
Wywala mi taki błąd:
Kod
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in ...index.php on line 12
Linia 12
if $_POST['cb'] == 1 {