Episode 4.2
WEB DESIGN FOUNDATIONS
Class 12 (10+2) • Unit 4: Elementary Server side Scripting through PHP
💡 Direct Stream: You can also watch directly on YouTube or via local server:
📺 Watch on YouTube.com
Episode code: 4.2
✍️ Episode 4.2 Topic Notes
📌 A. The `<input>` Element
type="text": Single-line alphanumeric text box.type="password": Single-line text box where keystrokes are masked with dots or asterisks for confidentiality.type="radio": Mutually exclusive radio buttons. Sharing the identicalnameattribute groups them together so only one option can be selected at a time:type="checkbox": Independent checkboxes allowing users to select zero, one, or multiple options simultaneously.
📌 B. Multi-Line Text & Dropdown Controls
- The
<label>Element: Enhances usability and accessibility. Clicking the label focuses the associated input control: - The
nameAttribute (Mandatory for PHP): - The
nameattribute is the variable key that PHP uses to read the submitted value on the server! - If
<input type="text" name="student_name">is submitted via POST, PHP accesses it as: