From e322c83a50c13ac2738450732f27c76bb1f82d97 Mon Sep 17 00:00:00 2001 From: Oussama Mouggal Date: Mon, 2 Feb 2026 12:32:57 +0000 Subject: [PATCH 1/5] Enhance form to collect user details including name, email, color, and size selections --- Form-Controls/index.html | 58 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..aa7405ca8 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -12,16 +12,64 @@

Product Pick

-
- + + + +

+ + +

+
+ Please select a color: + + +
+
+ + +
+
+ + +
+
+
+

+ + +

+ +
+ + + + We are selling t-shirts. Write a form to collect the following data: + +Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size. + +Writing that out as a series of questions to ask yourself: + +What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something. +What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern. +What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours? +What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL +All fields are required. Do not write a form action for this project.-->
From b5ae6e60a14bb84725a0d2fed917e21cccc2d945 Mon Sep 17 00:00:00 2001 From: Oussama Mouggal Date: Tue, 3 Feb 2026 16:09:27 +0000 Subject: [PATCH 2/5] i deleted the comment/exercise instructions --- Form-Controls/index.html | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index aa7405ca8..49582462d 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -50,22 +50,6 @@

Product Pick



- - - - -