Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
10php
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yu Kimiduka
10php
Commits
a71f51a0
Commit
a71f51a0
authored
Jul 07, 2016
by
君塚 悠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
プログラム修正(cokkie.php,cokkie-rec.php:クッキーの記録)
parent
874c4b47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
cookie.php
php/php10/day02-3/cookie.php
+15
-0
cookie_rec.php
php/php10/day02-3/cookie_rec.php
+12
-0
No files found.
php/php10/day02-3/cookie.php
0 → 100644
View file @
a71f51a0
<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
php/php10/day02-3/cookie_rec.php
0 → 100644
View file @
a71f51a0
<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment