Web Programming Assignment 2
Web Programming Assignment 2
Note: Dear students, please complete this assignment within due data and time. No
assignment will accept after the due date and time and upload the assignment on the LMS.
1. Write a PHP script to calculate and display the result of adding, subtracting, multiplying, and dividing
two variables ($num1 = 20, $num2 = 10). (02)
2. Create an HTML form with fields for Name, Email, and Age. Write a PHP script to: (03)
• Validate the input to ensure all fields are filled.
• Display an error message if validation fails.
• Show the entered data on the same page if validation is successful.