🎬 Video Lecture 📊 Presentation Slides 📝 Practice Quiz 📁 Unit 4 Hub
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
📊 Slide Deck 📝 Take Quiz
⬅️ Previous Episode 🏠 Unit Overview Next Episode ➡️

✍️ 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 identical name attribute 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 name Attribute (Mandatory for PHP):
  • The name attribute 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: