Witam,
Mam problem z takim oto kodem:
<!DOCTYPE html>
<form action="data.php" method="get"> <input type="text" required="required" name="firstname" id="firstname" placeholder="Imię"></label> <input type="text" required="required" name="date" id="date" placeholder="MM/DD/RRRR"</label>
<?php
$firstName = $_POST['firstname'];
$Date = $_POST['date'];
if (bool
checkdate ( int
$month , int
$day , int
$year )) { echo "Data jest poprawna"; } else {
echo "Data jest niepoprawna"; }
?>
Pojawia się błąd: Parse error: syntax error, unexpected T_STRING in /data.php on line 4
Czy ktoś może pomóc i powiedzieć co jest nie tak? Szukałem już chyba wszędzie i nie mogę dojść co nie tak.