To purchase my video tutorials, visit www.torontowebsitedeveloper.com/store.
In the fourth tutorial of this series, I walk you through PHP If statements which allow us to add some dynamic complexity to our PHP scripts. In doing so, we use an if statement to selectively print a message to a user but these can obviously get very complex. In short, an if statement is provided something to evaluate, which if true, executes some block of code. We conclude by looking at a statement which is a little more complex and reacts to input provided by a user via an HTML form.