im new to php and having some trouble with parameter passing in functions. I can't get my function to execute properly. This is the function.
function validateUser($username){
if(!empty($_POST))
{
if(strlen($_POST['username']) < 5)
{
die("Please enter a valid username");
}
}
thanks
}maybe. Or, what did you get exactly ??$_POSTvariable by executingecho "<pre>"; print_r($_POST); echo "</pre>";$usernamebut inside of the function you don't use this parameter and validate what you have in$_POST['username']