<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<?php
function display_welcome()
{
print("Welcome, ");
print($_POST['user_name']);
}
function display_empty_form()
{
print <<<_HTML_
<FORM method="post" action="$_SERVER[PHP_SELF]">
Eneter your name:<input type="text" name="user_name">
<br/>
<input type="submit" value="submit name">
</FORM>
_HTML_;
}
if($_POST['user_name'])
{
display_welcome();
}
else
{
display_empty_form();
}
?>
</body>
</html>
訂閱:
張貼留言 (Atom)
讓ASP.NET網站在開發除錯時期擁有WEB.CONFIG文件轉換功能
ref: https://blog.kkbruce.net/2016/09/enabling-xml-document-transforms-for-all-asp-net-web-by-develop-time.html#.XoP1KGMzbRY
-
https://docs.microsoft.com/zh-tw/dotnet/framework/data/transactions/using-system-transactions-in-aspnet <system.web> <co...
-
ASP 判断Session变量是否存在的4种方法 1 If Session("sesName") = "" Then ... 2 If Session("sesName") = Empty Then ... 3 If...
-
IS NULL 判斷值是否為NULL 學號 成績 S0001 56 S0001 73 S0002 92 S0002 63 S0003 92 S0003 70 S0004 75 S0004 88 S0004 68 S0005 NU...
沒有留言:
張貼留言