For example : In : ttp://www.ovationmortgageloans.com/jacksonville%20mortgage%20rates.html <?php
Assign Variable from Directory name?
6
For example :
In : ttp://www.ovationmortgageloans.com/jacksonville%20mortgage%20rates.html
<?php
$keyword = preg_replace("/_/",' ',$_REQUEST["keyword"]);
?>
Gets the term before the .html so everywhere I place <?php echo $keyword; ?> on the page that term will show up.
Can this be done for a static directory :
mysite.com/florida/jacksonville%20mortgage%20rates.html
So that I could place something like <? echo $dir; ?> and the intended directory name would show up everywhere that code is placed?
Thanks!
In : ttp://www.ovationmortgageloans.com/jacksonville%20mortgage%20rates.html
<?php
$keyword = preg_replace("/_/",' ',$_REQUEST["keyword"]);
?>
Gets the term before the .html so everywhere I place <?php echo $keyword; ?> on the page that term will show up.
Can this be done for a static directory :
mysite.com/florida/jacksonville%20mortgage%20rates.html
So that I could place something like <? echo $dir; ?> and the intended directory name would show up everywhere that code is placed?
Thanks!
- KirkMcD
- [ 1 ] Thanks
- andrejvasso
- [ 1 ] Thanks
- [1] reply
- newbie365
- [ 1 ] Thanks
- scotl47
Next Topics on Trending Feed
-
6