Hi,
Why are you using a function to grab the form data? With PHP, if you access a page such as page.php?name=mike
In the code you can access that as $name without needing the function. Are you doing it so you can see what data you have to work with? If so, wouldn't it be better to just assume that you have everything you need, and in a function where you need it, check to make sure those values aren't Null?
I understand in PERL you need to have a function like this, or use CGI.pm - but I don't see the point of having it for this...
Cheers,
Michael Bray
Why are you using a function to grab the form data? With PHP, if you access a page such as page.php?name=mike
In the code you can access that as $name without needing the function. Are you doing it so you can see what data you have to work with? If so, wouldn't it be better to just assume that you have everything you need, and in a function where you need it, check to make sure those values aren't Null?
I understand in PERL you need to have a function like this, or use CGI.pm - but I don't see the point of having it for this...
Cheers,
Michael Bray