有人可以告诉我为什么在打开此页面时什么都没有显示?输出不会显示出来php
<?php
include_once("functions.php");
// Process
$action = isset($_POST["action"]) ? $_POST["action"] : "";
if (empty($action))
{
// Send back the contact form HTML
$output = "<form action='#' style='display:none'>
<label for='image'>upload: </label>
<input type='file' id='image' name='image' maxlength=50>";
}
echo $output;
?>
'$ action'为空吗? – billyonecan
为什么不直接使用if(isset($ _ POST [“action”])){...}? – Aquillo
也许$ _POST ['action']它的设置 – Sam