Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

index.html: Account Sign Up Account Sign Up Account Information E-Mail: Password: Phone Number: Settings How did you hear about us? Search engine Word of mouth

image text in transcribed

index.html:

Account Sign Up

Account Sign Up

Account Information

Settings

How did you hear about us?

Search engine Word of mouth Other

Would you like to receive announcements about new products and special offers?

YES, I'd like to receive information about new products and special offers.

Contact via:

Comments:

main.css: body { font-family: Arial, Helvetica, sans-serif; background: #666666; } main { width: 450px; margin: 0 auto; padding: 20px; background: #FFFFFF; border: 2px solid #000000; } h1 { color: navy; padding: 0; margin: 1em 0 .5em .5em; } p { margin: .5em 0; } fieldset { margin: 0; margin-bottom: .5em; padding-left: 1em; } label { width: 10em; float: left; margin-right: 1em; text-align: right; margin-bottom: .2em; } input { float: left; } br { clear: both; margin-bottom: .2em; } .textbox { width: 15em; margin-bottom: .2em; }

display_results.php:

// get the rest of the data for the form

// for the heard_from radio buttons, // display a value of 'Unknown' if the user doesn't select a radio button

// for the wants_updates check box, // display a value of 'Yes' or 'No' ?>

Account Information

Account Information

Comments:

WRITE THE CODE THAT GETS AND DISPLAYS THE DATA ENTERED BY THE USER 1. Open the index php file for this application and review the code. Note the names that are used for the various input controls. 2. Open the display results.php file for this application and review the code. Note that most of the code that gets data from the controls is missing. In addition, most of the code that displays this data is missing 3. Add the code that gets the data from the controls on the first page. Then, add the code that displays the data. 4. for the radio buttons, display a value of Unknown" if the user doesn't select a radio button. 5. For the check box, display a value of"Yes" or "No" depending on whether the user has selected the check box. 6. For all fields that allow the user to type text into the field, make sure to convert special characters into HTML entities before displaying that data on the second page Note (code found in supplemental Chapter 7 slides) PHP that converts special characters to character entities: K2 php $comment- $ POST [ comment']; Scomment htmlspecialchars (Scomment)i K p php echo Scomment; 2X/ p> 7. For the comment field, make sure to convert new line characters to

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

Working with other project stakeholders for support.

Answered: 1 week ago

Question

Knowledge of project management (PMI) teachings

Answered: 1 week ago