Bobafart
03-03-2008, 01:22 AM
I have a form where the user has the option to upload an image for a group creation script I am making.
it works great if the user uploads
but if the user decides not to upload anything and fill out the rest of the fields then I get into problems.. the file conditional is still met and "nothing" is uploaded to the server unforunately
if(isset($_FILES['uploadedfile']['name'])){
the above conditional is met whether or not the user decides to upload file in my form.. how do I make it so that the conditional is only met if an upload is made?
thanks
it works great if the user uploads
but if the user decides not to upload anything and fill out the rest of the fields then I get into problems.. the file conditional is still met and "nothing" is uploaded to the server unforunately
if(isset($_FILES['uploadedfile']['name'])){
the above conditional is met whether or not the user decides to upload file in my form.. how do I make it so that the conditional is only met if an upload is made?
thanks