有人可以告訴我爲什麼在打開此頁面時什麼都沒有顯示?輸出不會顯示出來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