Lab 2B

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

LAB

2B. Exercises with PHP




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

You might also like