Question: 1. Creat a new PHP file called welcome.php 2. Copy the template content from Annex 1 of this document to welcome.php 3. Give this page

1. Creat a new PHP file called "welcome.php"

2. Copy the template content from Annex 1 of this document to welcome.php

3. Give this page a title (e.g. Welcome)

4. Review the example on using the PHP super global variable $_GET at the following link: LINK

5. Writ a PHP script which displays the following message on the page, depending on the values set by the user in the URL: a. If the user enters the following URL: .../welcome.php?firstName=ExampleFirstName Then the message displayed on the page should be: Howdy ExampleFirstName b. If the user enters the following URL: .../welcome.php?lastName=ExampleLastName Then the message displayed on the page should be: Howdy ExampleLastName c. If the user enters the following URL: .../welcome.php?firstName=&lastName= Then the message displayed on the page should be: Howdy no names 2

6. Ensure that the script works with any name entered in the URL

7. Ensure that the script uses exactly the variables firstName and lastName (case sensitive).

8. verify your solution against the example shown in Annex 2 of this document

9. Creat a new PHP file called "currency.php"

10. Copy the template content from Annex 3 of this document to currency.php

11. Give this page a title (e.g. Currency Converter)

12. Creat an HTML form with the following features:

a. A textbox for the user to input the value to be converted

b. A set of radio buttons for the user to select the currency to be converted from i. Currency types should be: CAN, USD, EUR, GBP, CHY

ii. The corresponding flag icon should be displayed beside each currency option c. A set of radio buttons for the user to select the currency to be converted to i. Currency types should be: CAN, USD, EUR, GBP, CHY

ii. The corresponding flag icon should be displayed beside each currency option d. A submit button

13. Writ a PHP script which takes the user input (amount, converting from currency, converting to currency) and applies an appropriate conversion. The conversion rate can be an example and does not need to be updated in real time based on the exchange rates. a. A conversion to and from the same currency should result in the same amount before and after conversion b. Error checking must be implemented to ensure that the user is notified if the input is not a number 6. The output should be formatted as follows: =

14. verify your solution against the example shown in Annex 4 of this document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!