Quote:
Originally Posted by candyflip
What are your rates? 
|
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.
Quote:
Originally Posted by holograph
have you found a use for its new goto function?)
|
Never really used the function to be honest.
Quote:
Originally Posted by borked
Why is needle/haystack not consistent in logical order?
|
Good question, but I don't know that answer.
Quote:
Originally Posted by bo$$
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..
|
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" />