CS 2205 UNIT 3 LJ

docx

School

University of the People *

*We aren’t endorsed by this school

Course

2205

Subject

Information Systems

Date

Apr 3, 2024

Type

docx

Pages

4

Uploaded by Iby007

Report
A. Creating Forms with GET and POST Methods In HTML, forms are used to collect user input. The choice between using the GET and POST methods in forms depends on the specific requirements of the application. Form 1: Using GET Method The GET method appends form data to the URL as query parameters, making it visible in the address bar. It is suitable for simple queries and when you want to share the form's results via a URL. However, it has limitations on the amount of data that can be sent. Form 2: Using POST Method The POST method sends form data in the HTTP request body, making it more secure and suitable for sensitive or large data. It is not visible in the URL.
Difference in Outputs: The key difference between the two methods is in how they send data. GET appends data to the URL, which is visible and can be bookmarked or shared. POST sends data in the request body, which is not visible in the URL and is more secure, suitable for sensitive information. B. Choosing Form Control Elements Choose your marital status from the available options: Single, Married, Widow, prefer not to say. Best Form Control: Radio Buttons (input type="radio") Reason: Radio buttons allow users to choose one option from a list of mutually exclusive options, making them ideal for selecting marital status. 2. Indicate whether you have any medical history of diabetes (yes or no). Best Form Control: Checkbox (input type="checkbox) Reason: Checkboxes allow users to indicate yes or no for a single option, making them suitable for indicating the presence of medical history.
3. Write feedback for a food delivery service. Best Form Control: Textarea (textarea) Reason: Textareas provide a larger space for users to enter longer text, making them ideal for feedback where users may need to write detailed comments. 4. Select your favourite sport from a list of eight sports. Best Form Control: Dropdown Menu (select) Reason: Dropdown menus allow users to choose one option from a list, making them suitable for selecting a favorite sport from multiple choices.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help