Jump to content

Page name question.


lJesterl

Recommended Posts

This may be a silly question and not possible but im needing to achieve something and i think the best and easiest way would be if i could get the page name, i.e, main.php or testimonial.php and do something like

 

if($pagename = main.php){

 

$code="0";

 

}

 

if($pagename = testimonial.php{

 

 

$code="1";

 

}

 

 

possible?

Link to comment
https://forums.phpfreaks.com/topic/120720-page-name-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.