Re: [PHP] uploads work sometimes

2002-07-12 Thread Jason Wong
On Friday 12 July 2002 03:27, Tyler Longren wrote: > Hi, > > I have a form: > > > And the code that processes the form: > if ($_FILES['pdfFile']['name'] == "") { > print "You must select a file to upload"; > } > else { > // code to add data to db > } > > This works on my server at hom

[PHP] uploads work sometimes

2002-07-11 Thread Tyler Longren
Hi, I have a form: And the code that processes the form: if ($_FILES['pdfFile']['name'] == "") { print "You must select a file to upload"; } else { // code to add data to db } This works on my server at home (when I select a file to upload, it sees the filename in $_FILES['pdfF