This document provides instructions for completing basic PHP exercises including creating a file called "myfirst.php" that displays "Hello, World!" when accessed at http://localhost/myfirst.php. It also explains how to send values to the server by including them in the URL after a question mark or by using an HTML form with input fields and submitting to the server.
This document provides instructions for completing basic PHP exercises including creating a file called "myfirst.php" that displays "Hello, World!" when accessed at http://localhost/myfirst.php. It also explains how to send values to the server by including them in the URL after a question mark or by using an HTML form with input fields and submitting to the server.
This document provides instructions for completing basic PHP exercises including creating a file called "myfirst.php" that displays "Hello, World!" when accessed at http://localhost/myfirst.php. It also explains how to send values to the server by including them in the URL after a question mark or by using an HTML form with input fields and submitting to the server.
This document provides instructions for completing basic PHP exercises including creating a file called "myfirst.php" that displays "Hello, World!" when accessed at http://localhost/myfirst.php. It also explains how to send values to the server by including them in the URL after a question mark or by using an HTML form with input fields and submitting to the server.
1. Create a file myfirst.php under website root directory: a. Write “Hello, World!” on screen b. Access the above file by specifying http://localhost/myfirst.php and see the result on the screen c. If you access http://localhost, the default file will be accessed, it’s index.php
2. Send values to server • In URL: ex. http://localhost/index.php?firstname=John&lastname=Smith • In a form, with input field firstname and lastname