I was wandering if anyone knew if it was possible to return the name of the page I.E. if I am on index.php then I could print that in my code and if that is possible how could I make it so it would just read index??
Thanks john
<?php echo("$PHP_SELF")?> gives the page name and u might want to take a look at substr() function to extract the name without the extension
http://www.php.net/manual/function.substr.php
reg kevin
lol, i swear i searched for this and i couldn't find the answer... (guess i need to search longer than 5 seconds) 🙂