6 The following table shows three superglobal arrays used by PHP to pass pre-defined variables to a script. _SERVER Server environment variables. _GET Data submitted via HTTP GETmethod. _POST Data submitted via HTTP POSTmethod.
60COMP S834 Web Server Technology Self-test 3.5 1 The output of the following code is as follows: My Calculator 5 2 The output of the following code will be Your name is Lim, Jenny. followed by a line feed. Note that the line feed will not show up within a Web browser unless you use the <BR> tag. <!DOCTYPE html> <html> <body> <p>My Calculator</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = 2 + 3; </script> </body> </html> 3 The output is a ‘Try’ button. After the user clicks the button, the message ‘Welcome John!’ is shown. Here is the screenshot of the output: 4 The output is a ‘Try’ button. After the user clicks the button, the message ‘Welcome Ann, the Winner.’ is shown. Here is the screenshot of the output:
You've reached the end of your free preview.
Want to read all 65 pages?
- Spring '18
- World Wide Web, Web server, Hypertext Transfer Protocol, Server-side scripting