Download presentation
Presentation is loading. Please wait.
Published byMyah Copen Modified over 10 years ago
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.