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

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter9: Getting Started With Javascript: Creating A Countdown Clock
Section: Chapter Questions
Problem 11CP1
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L