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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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>
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply