Question: In this project, you will create a simple document that contains a conditional operator you will rewrite into an if else statement. 1. Create a
In this project, you will create a simple document that contains a conditional operator you will rewrite into an if else statement. 1. Create a new document in your text editor. 2. Type the declaration, element, document head, and element. Use the strict DTD and Conditional Script as the content of the element. 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. 4. Save the document as ConditionalScript.php in the Projects directory for Chapter 2, and then upload the document to the server. 5. Open the ConditionalScript.php file in your Web browser by entering the following URL: http:///PHP_Project/Chapter.02/Projects/ConditionalScript.php. 6. Close your Web browser window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
