D
Danish Hasan
Guest
I tried the following script :
<?php
if($_POST[upload]=="1")
{
$to="upload/" . $_FILES['file']['name'];
move_uploaded_file($_FILES['file']['tmp_name'],$to);
echo "Uploaded";
}
?>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="upload" value="1">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
It works, but the files I get in my upload folder at my hosting panel are links which do not open. Clicking on then displays file not found.
The page is presently on the net at www.ibexstudents.com/upload1.php
Please help..
<?php
if($_POST[upload]=="1")
{
$to="upload/" . $_FILES['file']['name'];
move_uploaded_file($_FILES['file']['tmp_name'],$to);
echo "Uploaded";
}
?>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="upload" value="1">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
It works, but the files I get in my upload folder at my hosting panel are links which do not open. Clicking on then displays file not found.
The page is presently on the net at www.ibexstudents.com/upload1.php
Please help..