Commit a71f51a0 authored by 君塚 悠's avatar 君塚 悠

プログラム修正(cokkie.php,cokkie-rec.php:クッキーの記録)

parent 874c4b47
<html>
<head>
<title>クッキーでデータを記録する</title>
</head>
</html>
<body>
<Form method="POST" action="cookie_rec.php">
E-mailアドレス:
<input type="text" name="email" size="30"
maxlength="50"
value="<?php print($_COOKIE['email']); ?>" />
<input type="submit" value="送信" />
</form>
</body>
</html>
\ No newline at end of file
<html>
<head>
<title>クッキーでデータを記録する</title>
</head>
</html>
<body>
<?php setcookie("email",$_POST['email'],time()
+(60*60*24*90)); ?>
クッキー"email"を保存しました。
</form>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment