29
六月

暑期營程式設計 06/29: ex1

   Posted by: admin   in 104(暑)程式設計營

//ex1.htm
<h1>Ex1</h1>
<form action="ex1.php" method="post">
姓名<input name="SName" type="text" />
<input name="Sbumit" type="submit"  value="送出"/>
</form>
//ex1.php
<?php
$Var1=$_POST["SName"];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHP POST</title>
</head>
 
<body>
<h1>接收資訊</h1>
<?php echo $Var1; ?>, 您好。
</body>
</html>

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags:

This entry was posted on 星期一, 六月 29th, 2015 at 08:10:47 and is filed under 104(暑)程式設計營. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment