This has to be something simple that I just don’t get…
I have a function in file functions.php:
[php]
function check_input($data)
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}[/php]
At the beginning of my page, I start php, include functions.php and get my post data:
[php]
[/php]
Later in my code, if I include the following:
[php]
"; ?>
[/php]
I can see that $key has not been altered with check_input, however when I use the function in the echo statement, it is called and works.
Why doesn’t it work when I first set $key with the post command?
Thanks… !!