我写了这个小会话脚本,我看到它不起作用.
"; } ?>Simple Session Example if(isset($_SESSION['username'])) { $username = $_POST["username"]; echo "Hello $username
"; } else { echo "OUT!
"; echo "
我无法弄清楚哪个部分是错的.看起来对m来说都很好但是肯定有些不对劲.
像这样的东西?
"; } ?>Simple Session Example if(isset($_POST['username'])) { $username = $_POST["username"]; $_SESSION["username"] = $_POST["username"]; echo "Hello $username
"; } else if($username) { echo "Hello $username
"; } else { echo "OUT!
"; echo "