Page 1 of 1

1.Use text boxes, password boxes, radio buttons, check boxes, drop-down lists, list boxes, and text areas to get input f

Posted: Sun Jul 03, 2022 9:58 am
by answerhappygod
1.Use text boxes, password boxes, radio buttons, check boxes,drop-down lists, list boxes, and text areas to get input from theuser.
2.Use hidden fields to pass data to the web application when aform is submitted.
3.Use the htmlspecialchars and nl2br functions to display userentries the way you want them displayed.
4.Use echo statements to display data in a web page.
<?php // get the data from the form $email = filter_input(INPUT_POST, 'email',FILTER_VALIDATE_EMAIL);
// get the rest of the data for the form
// for the heard_from radio buttons, // display a value of 'Unknown' if the user doesn'tselect a radio button
// for the wants_updates check box, // display a value of 'Yes' or 'No'?><!DOCTYPE html><html><head> <title>Account Information</title> <link rel="stylesheet" type="text/css"href="main.css"/></head><body> <main> <h1>AccountInformation</h1>
<label>EmailAddress:</label> <span><?php echohtmlspecialchars($email); ?></span><br>
<label>Password:</label> <span><!-- add PHP codehere--></span><br>
<label>PhoneNumber:</label> <span></span><br>
<label>HeardFrom:</label> <span></span><br>
<label>SendUpdates:</label> <span></span><br>
<label>ContactVia:</label> <span></span><br><br>
<span>Comments:</span><br> <span></span><br> </main></body></html>