php question
- Started
- Last post
- 7 Responses
- navitronic
I have a website...
currently each different page is done using seperate php files. I want to change it so that the seperate parts of the website are loaded using includes. and I want to trigger this by :
www.navitronic.co.uk/?guest
to load the guestbookwww.navitronic.co.uk/?links
for the links page etcI know how to do everything but how to detect whats being passed in if its just ?guest (or whatever) as opposed to ?p=guest or something similar. I've seen other sites that do it so I know it must be possible.
any ideas?
- quik0
if(isset($_GET['guest']){
//guest is set, include it
}
- quik0
if(isset($_GET['guest']){
//guest is set, include it
}
- quik0
damn, sorry about the double.. internet is slow this morning
- mirola0
try
if(isSet(guest)) {
//guest is erm.. set.
}
- mirola0
sorry, like he said.
- navitronic0
thanks guys.
- quik0
if(isset($guest)){
}
would be used for before PHP version 4.21 or something.
as you were.