Skip to content

Commit 9eb7223

Browse files
author
Ogbemi mene
committed
my new form control
1 parent 67dbbd0 commit 9eb7223

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

Form-Controls/Untitled-1.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>My product pick form</title>
7+
<link rel="stylesheet" href="Untitled-1.css">
8+
<style>
9+
10+
body { display: block; max-width: 450px; margin: 40px auto; font-family: sans-serif; }
11+
#t-shirt { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px; line-height: 1.6; }
12+
a { color: #4a90e2; text-decoration: none; font-weight: bold; }
13+
</style>
14+
</head>
15+
<body>
16+
17+
<h1>Your Order Details</h1>
18+
19+
<div id="t-shirt"></div>
20+
21+
<a href="index.html">← Go back to form</a>
22+
23+
<script>
24+
25+
const Tshirtlist = document.getElementById('t-shirt');
26+
27+
new URLSearchParams(window.location.search).forEach((value, name) => {
28+
Tshirtlist.append(`${name.toUpperCase()}: ${value}`);
29+
Tshirtlist.append(document.createElement('br'));
30+
});
31+
</script>
32+
33+
</body>
34+
</html>

Form-Controls/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1>PRODUCT PICK</h1>
3535
</div>
3636

3737
<div>
38-
size of T-shirt
38+
T-shirt size
3939
<label for="size">size of T-shirt</label>
4040

4141
<select name="size" id="size" required>

0 commit comments

Comments
 (0)