I see now better how echo is essentially a server-side variable. What I have:
<iframe src="http://example.com/A/B/<?php echo $url; ?>.html"></iframe>
However, the PHP is passing urls of pages that don't exist. How can I fix this? Also, the only thing $title that ever shows is someDefaultTitle.