【PHP】下らねぇ質問はここに書き込みやがれ 45
■ このスレッドは過去ログ倉庫に格納されています
0041nobodyさん
2007/05/28(月) 15:17:16ID:ywe2HeV4汚いソースで申し訳ありませんが・・・
<?
/* test.php EUC-JP ?>*/
?>
<html lang="ja">
<head>
<meta http-equiv="content-Type" content="text/html; charset=EUC-JP">
</head>
<body>
<fieldset>
<form action="test.php" method="post">
<input type="text" name="hoge" />
<input type="submit" />
</form>
実行結果<br />
<?
echo $_POST['hoge']; //blank
if(empty($_POST['hoge'])) echo"empty" ; //TRUE
if(isset($_POST['hoge'])) echo"isset" ; //TRUE
if(!empty($_POST['hoge'])) echo"!empty"; //FALSE
?>
</fieldset>
</body></html>
■ このスレッドは過去ログ倉庫に格納されています