You have been given an HTML file called registrationForm.html which creates an HTML form to collect information about users for the purpose of adding users to a mailing list. See figure 1. A zip file (images.zip) has also been provided to you – this contains a folder called images with a Figure 1: Brower output of the registrationForm.html document Your task is to write an HTML document with PHP embedded script to process the form data and call this when the Register button is pressed. Send the form data using the post method. When the user enters data as shown in figure 2, the output of your PHP script (that is sent to the browser) should look as shown in figure 3. (You don’t actually need to add the data to adatabase for this exercise.)   Figure 2: Example form data Figure 3: Output of the PHP script using the form data shown in figure 2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

You have been given an HTML file called registrationForm.html which creates an HTML form to collect information about users for the purpose of adding users to a mailing list. See figure 1. A zip file (images.zip) has also been provided to you – this contains a folder called images with a

Figure 1: Brower output of the registrationForm.html document

Your task is to write an HTML document with PHP embedded script to process the form data and call this when the Register button is pressed. Send the form data using the post method.

When the user enters data as shown in figure 2, the output of your PHP script (that is sent to the browser) should look as shown in figure 3. (You don’t actually need to add the data to adatabase for this exercise.)

 

Figure 2: Example form data

Figure 3: Output of the PHP script using the form data shown in figure 2

e Sample form to take user input in HTML - Windows Internet Explorer
z:\Teaching\G51WPSIExercises\Exercise4\registr. X Google
File
Edit
View Favorites
Tools Help
Google
Search
Sign In -
>>
eSample form to take user input in HTML
Page -
Tools -
This is a sample registration form.
Please fill in all fields and click Register.
User Information
Please fill out the fields below.
First Name Boriana
Last Name Koleva
Em ail
bnk@cs.nott.ac.uk
Phone
0115 8466530
Publications
Which book would you like information about?
Internet and WWW How to Program 2e
Operating System
Which operating system are you currently using?
O Windows XP O Windows 7 O Mac OS X
O Linux O Other
Register
Local intranet
* 100%
Figure 2: Example form data
Transcribed Image Text:e Sample form to take user input in HTML - Windows Internet Explorer z:\Teaching\G51WPSIExercises\Exercise4\registr. X Google File Edit View Favorites Tools Help Google Search Sign In - >> eSample form to take user input in HTML Page - Tools - This is a sample registration form. Please fill in all fields and click Register. User Information Please fill out the fields below. First Name Boriana Last Name Koleva Em ail bnk@cs.nott.ac.uk Phone 0115 8466530 Publications Which book would you like information about? Internet and WWW How to Program 2e Operating System Which operating system are you currently using? O Windows XP O Windows 7 O Mac OS X O Linux O Other Register Local intranet * 100% Figure 2: Example form data
O Form Validation Mozilla Firefox
Eile Edit View Higtory Bookmarks Iools Help
http://marian.cs.nott.ac.uk/n-bnk/cgi-bin/form.php
current operatirP
P Most Visited
Getting Started
Latest Headlines from interaction to tra.
* Examination.
Writing Guid.
IE BBC - h2g2 .
E Online Lear...
W Operating s..
Form ... X
Hi Boriana . Thank you for completing the survey.
You have been added to the Internet and WWW How to Program 2e mailing list.
The following information has been saved in our database:
Name
Email
Phone
OS
Boriana Koleva bnk@cs.nott.ac. uk 0115 8466530 Windows XP
This is only a sample form. You have not been added to a mailing list.
Done
Figure 3: Output of the PHP script using the form data shown in figure 2
Transcribed Image Text:O Form Validation Mozilla Firefox Eile Edit View Higtory Bookmarks Iools Help http://marian.cs.nott.ac.uk/n-bnk/cgi-bin/form.php current operatirP P Most Visited Getting Started Latest Headlines from interaction to tra. * Examination. Writing Guid. IE BBC - h2g2 . E Online Lear... W Operating s.. Form ... X Hi Boriana . Thank you for completing the survey. You have been added to the Internet and WWW How to Program 2e mailing list. The following information has been saved in our database: Name Email Phone OS Boriana Koleva bnk@cs.nott.ac. uk 0115 8466530 Windows XP This is only a sample form. You have not been added to a mailing list. Done Figure 3: Output of the PHP script using the form data shown in figure 2
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education