Question: PHP Exercise 2-1 Create a folder named PHPEx2 on your h drive or on your home computer if you are completing this at home. Create

PHP Exercise 2-1
- Create a folder named PHPEx2 on your h drive or on your home computer if you are completing this at home. Create a new html document in your text editor.
- Be sure to include all the appropriate html tags for a basic document. Add id comments at the top containing: your name, the date, and the words PHP Exercise 2-1
- Create a script section in the document body that includes the following code, but replace the conditional expression statement with an ifelse statement. Note that the strings are enclosed in single quotation marks so that the name of the variable will be displayed, not the value.
$IntVariable = 75;
($IntVariable > 100) ? $Result $IntVariable is greater than 100 : $Result = $IntVariable is less than or equal to 100;
Echo
$Result
;
?>
- Save the document as ConditionalScript.php inside the folder PHPEx2. In order to test this you will need to save the document to your development web server in your ClassEx folder.
PHP Exercise 2-1 1. Create a folder named PHPEx2 on your h drive or on your home computer if you are completing this at home. Create a new html document in your text editor. 2. Be sure to include all the appropriate html tags for a basic document. Add id comments at the top containing: your name, the date, and the words PHP Exercise 2-1 3. Create a script section in the document body that includes the following code, but replace the conditional expression statement with an if...else statement. Note that the strings are enclosed in single quotation marks so that the name of the variable will be displayed, not the value. 100) ? $Result - $IntVariable is greater than 100': $Result = '$IntVariable is less than or equal to 100'; Echo "
$Result
"; ?> 4. Save the document as ConditionalScript.php inside the folder PHPEX2. In order to test this you will need to save the document to your development web server in your ClassEx folder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
