Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38f6665

Browse files
authored
Create index.php
1 parent ca2b2ec commit 38f6665

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

‎index.php‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php # @author iosif miclaus
2+
3+
// connect to database
4+
5+
// select data from database
6+
7+
$data = ['some@email.com', 'office@email.org'];
8+
9+
?>
10+
<!DOCTYPE html>
11+
<html>
12+
<head>
13+
<meta charset="UTF-8" />
14+
<title>Database Form</title>
15+
</head>
16+
<body>
17+
<h1>Database Form</h1>
18+
<form method="post" action="action.php">
19+
<input
20+
type="email"
21+
name="email"
22+
placeholder="Type your email address"
23+
/>
24+
<input
25+
type="submit"
26+
name="save"
27+
value="Save"
28+
/>
29+
</form>
30+
31+
<h2>Email addresses</h2>
32+
<div>
33+
<?php
34+
foreach ($data as $key => $email) {
35+
?><div class="field"><?php
36+
echo $email;
37+
?></div><?php
38+
}
39+
?>
40+
</div>
41+
</body>
42+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /