ok, hi all,
i have a problem, i want to check all values and keys from $_POST or $_GET files. My checkings criteria are:
1-) the key must be set;
2-) values must not be empty.
Because $_POST and $_GET values is a array i have the following code:
function checkValues($postValues)
{
foreach($postValues as $key => $value)
{
if(!isset($key) && $value == "")
{
return false;
}
else
{
return true;
}
}
}
however if i have athe following www.domain.com/index.php?hello=hello&code=php
it will be valitaded only the first key and value and not the rest.
could someone help me, please