I am attempting to dynamically grab a page's title and URL and echo into HTML. Here's what I have:
<ul>
    <li><a href="mailto:?Subject=<?php echo $page_title?>&body=<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" class="email" title="Email">Email</a>
    </li>
</ul>
The URL successfully echos, but I'm not sure if this is the correct way? And I can not figure out how to print the page's title via <?php echo $page_title?>?
 
     
     
    