you know the basic file upload script in php, is there a way on that script, when you have uploaded a image, jpg/gif, it can show a preview, and also a url of where the file is?
< form action="upload.php" method="post" enctype="multipart/form-data">
< input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Select a file to upload! < input type="file" name="userfile" >< br >
< input type="submit" value="Upload!" >
< /form >
< /body >
< /html >
>>>>>>>>>>>>>>.
< ?php
if(!(copy($_FILES['userfile']['tmp_name' ], "Upload/" . $_FILES['userfile']['name']))) die("Cannot upload files.");
echo "Upload Complete!";
? >
>> is that possible to do in php?
< form action="upload.php" method="post" enctype="multipart/form-data">
< input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Select a file to upload! < input type="file" name="userfile" >< br >
< input type="submit" value="Upload!" >
< /form >
< /body >
< /html >
>>>>>>>>>>>>>>.
< ?php
if(!(copy($_FILES['userfile']['tmp_name'
echo "Upload Complete!";
? >
>> is that possible to do in php?
