View Single Post
Old 04-18-2009, 04:06 PM  
bo$$
Confirmed User
 
bo$$'s Avatar
 
Join Date: Feb 2009
Location: The bank
Posts: 235
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..

Last edited by bo$$; 04-18-2009 at 04:07 PM..
bo$$ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote