0% found this document useful (0 votes)
49 views1 page

Practice Questions: HTML & PHP: For Example

This document provides 4 practice questions to test skills with HTML forms, PHP scripts, and object-oriented PHP. The questions cover: 1) Creating an HTML form to accept a user name and displaying it with PHP; 2) Displaying string values in a PHP-generated table; 3) Creating an HTML form with questions and a PHP program to respond incorporating the user's answers; 4) Defining a Calculator class to perform basic math operations like addition and multiplication on two passed values.

Uploaded by

fatty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Practice Questions: HTML & PHP: For Example

This document provides 4 practice questions to test skills with HTML forms, PHP scripts, and object-oriented PHP. The questions cover: 1) Creating an HTML form to accept a user name and displaying it with PHP; 2) Displaying string values in a PHP-generated table; 3) Creating an HTML form with questions and a PHP program to respond incorporating the user's answers; 4) Defining a Calculator class to perform basic math operations like addition and multiplication on two passed values.

Uploaded by

fatty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Practice Questions: HTML & PHP

1. Create a simple HTML form and accept the user name and display the name through PHP
echo statement.
2. Write a PHP script to display string, values within a table.
3. Write an HTML file that contains a form and a PHP program that processes the data from
the form. The form should contain some questions that the user can answer, and the PHP
program should produce a response that incorporates the user's answers in some way.
4. Write a PHP Calculator class which will accept two values as arguments, then add them,
subtract them, multiply them together, or divide them on request.
For example :
$mycalc = new MyCalculator( 12, 6);
echo $mycalc- > add(); // Displays 18
echo $mycalc- > multiply(); // Displays 72

You might also like