在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
<?php $filename = $_POST['filename']; $explain = $_POST['explain']; $upfile = $_FILES['upfile']; if(is_uploaded_file($upfile['tmp_name']) && $upfile['size']>0){ $filepath = './'.$upfile['name']; move_uploaded_file($upfile['tmp_name'],$filepath); $res = mysql_query("INSERT INTO 表(filename,explain,filepath) VALUES('$filename','$explain','$filepath')"); if($res){ echo '添加成功!'; exit(); } } ?> <form action="" method="post" enctype="multipart/form-data" name="form1" > <p> <input type="text" name="filename" /> </p> <p> <input type="text" name="explain" /> </p> <p> <input type="file" name="upfile" /> </p> <p> <input type="submit" name="button" /> </p> </form>
|
2022-08-17
2022-11-06
2022-08-17
2022-07-29
2022-07-29
请发表评论