Jump to content

Need help with form Warning: file() [function.file]: Filename cannot be empty in


hacksurfin79

Recommended Posts

I recently switched hosting companies and now I have problems with a form that work  perfect before.  I am sure it is an easy fix but cannot figure it out.  If filling out the form I don't attach anything I get this message. But if I attach a file it works fine.

 

Warning: file() [function.file]: Filename cannot be empty in /home/patchss/public_html/free_quote.php on line 26

 

Warning: file() [function.file]: Filename cannot be empty in /home/patchss/public_html/free_quote.php on line 106

 

Warning: Cannot modify header information - headers already sent by (output started at /home/patchss/public_html/free_quote.php:26) in /home/patchss/public_html/free_quote.php on line 165

 

 

You probably have error display turned on on the new host, where you didn't before. If you can show the script around the attempted file uploads it's a simple fix. You need to see if the user has attempted to attach the file. If not, dont try and upload one.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.