Hi guys/gals, I have been searching and searching but found nothing that I could use so I'm now asking in here. Can someone be so kind and tell me how a php script that takes an url and strip off some info and then take the rest and paste it into the meta keywords/description tags? For example http://www.somesite.com/?santa+klaus it should take santa & Klaus and add it to the meta tag when the page loads. Can this be done easily? Thanks in advanced for all suggestions!
http://www.gr8vid.com/index.php?s=Basshunter Searching for <? echo $_GET['s']; ?> Result: Searching for Basshunter.
<?php $url='http://test.tld/?first=First+Content&second=Second+Content&third=Third+Content'; $_meta=''; foreach($_GET as $key) $_meta.=$key; echo '<meta name="keywords" content="'.$_meta.'" />'; ?> Try this and tell me how it works. This should be put where you want the meta keywords to be shown (in the head tags, of course).