When I display an echo only executed with an if statements on the same page, it seems like that echo is on the page BEFORE I execute the code (for example, age verification validation)
Like this:
PHP Code:
<?php
$age = $_GET['age']
if ($age < 18)
{
echo "your too young";
}
?>
<form action="penis.php" method="get">
<input type="text" name="age" />
<input type="submit" />
If I were to go to /penis.php, the echo would be displayed.
How the fuck do I do this?
Im new to php..