How would I dynamically change meta tag information on a per page basis?
If a visit is on my “about” or “inventory” page. In the title and meta tag I would want that user to see “about us” or “inventory”. How would I do something like that? Thanks!
For example, this page should be echoing out “Title Test Page” but it’s not. What am I doing wrong here?
Thanks!
Thanks for your response but I actually just figured it out.
This is what I think what is happening.
The request_uri acts as a unique identifier of the page and whatever URL the user is on, the page echos out the $title variable? Is that correct?
Thanks!
$title;
$url = $_SERVER['REQUEST_URI'];
switch($url){
case "/class-work/sign3/titletest.php";
$title = 'Title Test Page!';
break;
etc.....
}