Can we use the part from url and set it as variable
Posted 09 September 2006 - 10:43 AM
Soo i want to set the variable to catch only "product" and leaving the other content in the url...
Soo in this example i have to exclude 22 character ( http://www.domain.com/ ) from start and 4 characters ( .php ) from End.
I know this is possible have any one tried this one.... If yes please let me know..... waiting for your replies....
Posted 09 September 2006 - 11:01 AM
$page = 'index';
And at the top of product .php, you have a line that says:
$page = 'product';
You could do it in the way you are suggesting, but it would be needlessly complex.
Posted 09 September 2006 - 11:19 AM
Soo i am trying to do this. Actually i want that variable to echo in my title tag and some parts of the body soo i want to try it out this one. have u ever tried it please give me ints and i'll foloow up.
Posted 09 September 2006 - 12:50 PM
<?php $filename = substr(basename($_SERVER['PHP_SELF']),0,-4); ?>
(Gone until 20 to November)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users