Assignment
Assignment
Heading 145
picture.jpg
150
Limit to 5 digits
JULY 2011
Question 1b Write a program called response.php to reply the form using the format shown below. You need to add validation code to check whether the data for IC Number is numeric or string. (12 marks) If numeric:
If string:
Question 2 You need to write while statement that displays all odd numbers between 1 and 100 on the screen. 1. Create a new document in your text editor. 2. Type the <html> element, document head, and <body> element. Use Odd Numbers as the content of the <title> element. 3. Create a script section in the document body with while statement that displays all odd numbers between 1 and 100 on the screen. 4. Save the documents as OddNumbers.php in the htdocs folder. 5. Open the OddNumbers.php file in your web browser and print screen the output. (10 marks)
JULY 2011