I have a directoroy and i want to make the page titles dynamic. There is already $mainframe->setPageTitle( _DIRE_TITLE );[CODE] I want it to put &catid into the setPageTitle but I don't know how to call up &catid or seperate the two. I tried putting the variable &catid into there and seperating them with a space like this "( &catid, _DIRE_TITLE )" but it didnt work :confused: :confused: yes im a noob :D Code (markup):
What directory script are you running? Whoever made it should be able to help. It is hard to help as your site is using a special class which may need altering.
&catid is a variable from URL ? you can probably do something like: $mainframe->setPageTitle( $_GET["catid"] ." - " . _DIRE_TITLE ); Code (markup): or $mainframe->setPageTitle( $catid ." - " . _DIRE_TITLE ); Code (markup):
Make sure you filter that data you get from catid using htmlspecialchars and addslashes functions. Or you will have XSS vulnerabilities in your site. Thomas