04-18-2009, 07:50 PM
|
|
Confirmed User
Join Date: Feb 2009
Location: The bank
Posts: 235
|
Quote:
Originally Posted by Killswitch
Not really looking to take on anything as I got products of my own to put out, along with my own projects, but if you want hit me up depending on what you need done, we can work something out.
Never really used the function to be honest.
Good question, but I don't know that answer.
Because if $_GET['age'] isn't defined via penis.php?age=12 then technically $age returns as 0, which is lower then 18, therefor your echo is executed. Best way would be to do this:
PHP Code:
<?php
$age = $_GET['age']
if (!empty($age) && ($age < 18))
{
echo "your too young";
}
?>
<form action="penis.php" method="get">
<input type="text" name="age" />
<input type="submit" />
|
Swayt !
Thanks bro
|
|
|