我有以下代码示例upload3.PHP:
<html> <head> <title>PHP Form Upload</title> </head> <body> <form method='post' action='upload3.PHP' enctype='multipart/form-data'> Select a File: <input type='file' name='filename' size='10' /> <input type='submit' value='Upload' /> </form> <?PHP if (isset($_POST['submit'])) { echo "isset submit"; } else { echo "NOT isset submit"; } ?> </body> </html>
您没有名为的提交按钮:
更改
原文链接:https://www.f2er.com/php/137273.html更改
<input type='submit' value='Upload' />
至:
<input type='submit' value='Upload' name="submit"/>