I want to be able to call a specific PDF and embed it onto a page using a variable in PHP.
I have 50 PDF files named as the 50 US States IE: Akabama.pdf, Alaska.pdf, etc.
I also have 50 pages, each titled as one of the 50 states IE: Alabama, Alaska, etc.
What I am trying to accomplish is when the visitor opens (for example) the "Alabama" page, she is served with the Alabama.pdf embeded onto the page (probably using google.docs)
So far, all I have been able to accomplish is to create the variable:
<?php
$pdf_title= get_the_title();
?>
What I want to do is embed http:www.thissite.com/$pdf_title.pdf
I've searched through the book, and done a few Google searches but am still rather clueless. Please forgive me, as I am just beginning to learn PHP, but I am a very fast learner.
Thanks for any tips and guidance.
Pam