i am doing a simple upload script of the sort i do all the time below is the script that dosen't work
here is the html that sends the stuff to to my script
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>Untitled Document</title>
- </head>
- <body>
- <form action="process.php" method="post" enctype="multipart/form-data">
- <input type="file" name='imagefile'><br>
- <input type="submit">
- </form>
- </body>
- </html>
[PHP]
<?
include 'connect.php';
mysql_select_db($database, $cms);
$label = $_POST['label'];
$result = mysql_query("SELECT * FROM `counter`");
$row=mysql_fetch_row($result);
$i = $row[0];
$i++;
$save = "$i.jpg";
move_uploaded_file($_FILES['imagefile']['tmp_name'], $save);
?>
[/PHP]
i have done var dump on $_FILES and everything seems fine, i have printed out $save and the correct value is there, i put double quotes around the $save variable in the function call once to see if that helped but still to no avail, i don't know what is going on this is so simple it is totaly ridiculas, by the way $i = 2 in this case,
thanks for help
eric