Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using GET data within a IF Statement. If ($GETCom === ‘home’) { echo ’They Match’; } $GETCom = $_GET[‘com’]; If the data stored in the variable ($GETCom)

Similar presentations


Presentation on theme: "Using GET data within a IF Statement. If ($GETCom === ‘home’) { echo ’They Match’; } $GETCom = $_GET[‘com’]; If the data stored in the variable ($GETCom)"— Presentation transcript:

1 Using GET data within a IF Statement

2 If ($GETCom === ‘home’) { echo ’They Match’; } $GETCom = $_GET[‘com’]; If the data stored in the variable ($GETCom) is the same as the word ‘home’ Display on screen ‘They Match’ Get the envelope and save the data into the variable

3 Use your knowledge so far to send (GET) information from a hyperlink to a IF Statement. What is a “require” function in PHP?

4 If ($Com === ‘home’) { require ‘index.php’; } $Com = $_GET[‘com’]; If the data stored in the variable ($Com) is the same as the word ‘home’ Display on screen or process the code in this file. Get the envelope and save it into the variable


Download ppt "Using GET data within a IF Statement. If ($GETCom === ‘home’) { echo ’They Match’; } $GETCom = $_GET[‘com’]; If the data stored in the variable ($GETCom)"

Similar presentations


Ads by Google