Hi I was wondering if it is possible to make a link so that it takes you staight to a cerain word on a page which, would be a variable in my code. Thanks
you would have to enclose each word in a div tag, like ( i think): <div id="word">word</div> and then link to page.php#word
Suppose you want to make anchor for word Google in the middle of page. Place this html after the word Google <A name=google></A> than in your link for Google use this HTML <A href="#google">Shipping/Delivery</A>
I was searching for the same thing. I managed to find it on a forum side. <? $file = 'key.txt'; $newfile = 'key.txt.bak'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; } $ac=fopen("key.txt","r"); while(!feof($ac)) { $al=fgets($ac, 1024); $url1= $al; $url= makeSEO($al); $parcala=explode(" ",$url); if(count($al) < 2) { $adi=$parcala[0]; } else { $sayim= count($url); for($i=2; $i <= $sayim;$i++) { } } if($adi) { //echo $url.'<br>'; echo '<a href="'.$url.'.htm">'.$url1.'</a><br>'; } else { echo 'Eklemeyedim Sorun Oluþtu'; } } ?> <?php function makeSEO($text) { $text=str_replace(" ","-",trim($text)); $text=preg_replace("@[^A-Za-z0-9\-_ÃÜÞÃÖÇðüþýöç]+@i","",$text); $text=ereg_replace(" +"," ",trim($text)); $text=ereg_replace("[-]+","-",$text); $text=ereg_replace("[_]+","_",$text); $text=strtolowerTR($text); if ((substr($text,-1)=='_')||(substr($text,-1)=='-')) $text=substr($text,0,-1); return $text; } function strtolowerTR($text) { $TRBul=array('Ã','Ü','Þ','Ã','Ö','Ç','ð','ü','þ','ý','ö','ç'); $TRDegistir=array('g','u','s','i','o','c','g','u','s','i','o','c'); $text=str_replace($TRBul,$TRDegistir,$text); $text=strtolower($text); return $text; } ?> PHP: key.txt must be chmod 777. I did not try it my self yet.