How Do I Create Dynamic Keyword Titles in WordPress

if ($_GET['kw'])
{echo htmlentities($_GET['kw']);}
else
{echo ucwords("Your Info Here");}
?>

This is a test post

This is a test post