[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simpeg
/
administrator
/
[
Home
]
File: upload_foto_pgw.php
<?php if($_POST["Kirim"]) { $uploaddir = 'img/'; $uploadfile = $uploaddir . $_FILES['userfile']['name']; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { $_POST["statImport"] = "ok"; $_POST["pgw_foto"] = $_FILES['userfile']['name']; echo "<script>opener.document.frmEdit.pgw_foto.value='".$_POST["pgw_foto"]."', window.close();</script>"; } } ?> <form name="frmEdit" method="POST" action="upload_foto_pgw.php" enctype="multipart/form-data"> <input type="file" name="userfile" size="50" value="<?php echo $_POST["userfile"];?>"> <input type="submit" name="Kirim" value="Kirim" class="textField"> </form>