受信と送信 1−5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja"><head>
<meta http-equiv="Content-type" content="text/html; charset=EUC-JP">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../style.css">
<title>送受信2</title></head>
<body><div class="file2">
url でデータを送受信<br><br><br>
あなたの名前は?
<!--ここからPHPの始まりです。-->
<?php
error_reporting(1);
echo "<a href='01_05_send.php?name=".urlencode ("のみちゃん、こんにちは!")."'>のぞみ</a> ";
echo "<a href='01_05_send.php?name=".urlencode ("かなちゃん、元気ですか?")."'>かなえ</a> ";
echo "<a href='01_05_send.php?name=".urlencode ("たまちゃん、また来てね。")."'>たまえ</a> <br><br>";
$name = $_GET[name];
urldecode ($name);
if($name != ""){
echo "<font size='5'><b>";
echo $name."</b></font><br>";
} else {
}
?> <!--これでPHPは終わりです。//-->
</div>
<div style="width:650;margin:30px;padding:20px;font-size:15px;background-color:#ffffff">
<a href="../second.php?page_num=501">解説にもどる</a>
<a href="second.php?page_num=7">リストにもどる</a>
</div></body></html>