QUESTION 3 (PHP FILE HANDING) [25 MARKS] Create a new document in your text editor and create an All-in-One Web form that prompts the user for his or her birth year. Validate the user input to require the user to enter a number. Use a nested if...else statement to display the appropriate version of the message. "You were born under the sign of the (zodiac sign and display the zodiac image representing the posted year. Use the images provided to you on the Blackboard folder. Track the number of times each year is entered by storing a counter for each year in a file in a "statistics" subdirectory. Ensure that the PHP scripting engine has read and write permissions for the "statistics" subdirectory. Display a message at the bottom of the page showing how many times the specified year has been entered using the message "You are visitor [count] to enter [year]. Use a separate file for each year. The figure shows a sample Web form and figure shows a sample output Web page. Page 2 of 6 Semester Test 2 DSWO2A-Development Software THE CHINESE ZODIAC Using IF ELSE GP Twar Save the file as BirthYear_ifelse.php and upload it to the ChineseZodiac folder on the server. Create the "statistics" subdirectory and ensure that the write permissions are set to allow the PHP scripting engine to write files in the directory. Reopen the Birth Year_ifelse.php file. Modify the script to use a switch statement instead of the nested if...else statements. Save the file as BirthYear_switch.php and upload it to the ChineseZodiac folder on the server.
20:52 QUESTION 3 (PHP FILE HANDING) [25 MARKS] Create a new document in your text editor and create an All-in-One Web form that prompts the user for his or her birth year. Validate the user input to require the user to enter a number. Use a nested it...else statement to display the appropriate version of the message. "You were born under the sign of the [zodiac sign and display the zodiac image representing the posted year. Use the images provided to you on the Blackboard folder. Track the number of times each year is entered by storing a counter for each year in a file in a "statistics" subdirectory. Ensure that the PHP scripting engine has read and write permissions for the "statistics" subdirectory. Display a message at the bottom of the page showing how many times the specified year has been entered using the message "You are visitor [count] to enter [year] Use a separate file for each year. The figure shows a sample Web form and figure shows a sample output Web page. Page 2 of 6 Semester Test 2 DSWOZA-Development Software THE CHINESE ZODIAC Using IF ELSE My My Save the file as BirthYear_ifelse.php and upload it to the ChineseZodiac folder on the server. Create the statistics" subdirectory and ensure that the write permissions are set to allow the PHP scripting engine to write files in the directory. Reopen the Birth Year_ifelse.php file. Modify the script to use a switch statement instead of the nested if...else statements. Save the file as BirthYear_switch.php and upload it to the ChineseZodiac folder on the server. QUESTION 4 (JS+CSS+HTML) [25 MARKS] DELONG ENTERPRISES: Kay Ramirez is a human resources manager at Delong Enterprises, a manufacturer of computer components and digital equipment located in Plano, Texas. The company has been busy putton.corporate information on the company's intranet Kavished Instramit-related from and reports
QUESTION 3 (PHP FILE HANDING) [25 MARKS] Create a new document in your text editor and create an All-in-One Web form tha
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am