Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我正在使用 HTML 表单来允许用户将文件上传到我的网站。我如何确定他们是否已经从硬盘驱动器中选择了一个文件,但尚未提交表单。我想使用这些信息来确定是否应该发出某种警报来提醒他们提交表单。我正在使用 PHP,所以我可以使用isset()吗?
isset()
您不能使用 PHP 执行此操作,因为它驻留在服务器端并且在浏览器提交请求之前无法对浏览器执行任何操作。