Could someone please take a look at the below page and offer ideas on what's wrong? I have no idea what's going on. When you first go, it claims there's an undefined variable: action on line 11. No clue why - it's never done this before. Then, if you wanna upload something, it just goes to a blank page - its never done this either. :mad: 😕 :mad: 😕
http://www.kinsbane.kicks-ass.net/upload.php
here's two bits of code dealing with what's wrong (that I can't fix):
10
11 switch($action) {
12 default:
13 echo "
The linking system is set up so it's all in one page, you wanna do uploads the link says upload.php?action=upload and it takes you to where you can upload. when the upload is done, you're supposed to be able to view the pic you just uploaded - and the link looks like upload.php?action=doupload. So, that's where the $action variable is - i dont know why it wont take it.
Also, the files wont even upload - gives me an error that a variable is undefined and, according to my script, that I didnt even browse for a file, when I did!
here's the error:
Notice: Undefined variable: filer in c:\program files\apache group\apache\htdocs\upload.php on line 256
Must select file to upload!
here's the code for that:
250 case "doupload":
251 $dbh=mysql_connect ('localhost', 'e_novative', 'e_novative') or die ('I cannot connect to the database because: ' . mysql_error());
252 mysql_select_db ('uploads');
253 if(isset($_GET['file'])) $filer=$_GET['file'];
254
255 $dir = "dir";
256 if ($filer!="") {
Someone help. I'm at my wit's end. 🙁