At the end of this lesson, you will be able to:
add your first PHP script
using Chrome's developer mode to inspect your website
note that PHP works alongside HTML and CSS
go over what a variable is
go through this PHP Variables Tutorial
go through this PHP Form Handling Tutorial
accept the ICS2O Unit1-07 PHP Assignment in Github Classroom
create a web page, with the following requirements:
1 PHP file, using MDL
have 1 form field that asks for the user's name
welcomes the user on submit by name.
Because we are using our local server, you don't need to publish your webpage on GitHub Pages. The PHP wouldnt' work anyway.
In a nutshell...here is what you need to do:
<form> tag needs an action=handler.php
<form> tag needs a method=POST
<input> tag needs a name=
<button> needs a type=submit
make sure my button is inside my form
create an "index2.php" file, with the following requirements:
1 php file, using MDL
you must include a favicon
2 buttons that each have their own JavaScript alert