Jump to content

Generate relevant page titles by users' keyword searches


BLeez

Recommended Posts

Hi,

 

I just tried implementing the following code into my site to generate relevant page titles by users' keyword searches. 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<?php

  if ($_GET['keyword'] != "") {

    $keyword=ucwords(str_replace('-',' ',$_GET['keyword']));

  } else {

  $keyword="Cool Jewelry!";

}

?>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<title><?php echo $keyword; ?></title>

 

However, I only see my default keyword when I try testing the site with specific keywords. Any reason why this is? Any input would be appreciated.

 

Thanks!

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.