Forum Moderators: coopster
I`ve written this PHP script that enables people to upload files to their server. It works like a charm and I`ve had several people tell me that it works great and they like it. Thats good.
Now the script checks for valid field entries and if nothing is entered, ie: Name, then an error is generated. An example of my code is as follows.
if ($action == "upload")
{
$name = $_REQUEST['name'];
if ($name == "")
{ error message }
do uploading...blah blah
}
I`ve had an e-mail from someone that has said that even though they have entered something they still keep getting an error.
I was just wondering if you guys knew why? Is it related to problems with a server running in Safe Mode?
Also, would it be better to do:
if (empty($name))
instead of the above?
Thank you!
JAG
I think its the second time I`ve heard something like this happening, I remember seeing something about it on another forum a while back but can`t find the post.
Oh well, so long as I`m doing nothing wrong with my scripting thats all that matters. Which at the end of the day, is what I was really worried about.
Thanks! :)