We are wondering how we would add parameters to the following script so that each section can be called separately.
<?php
// This is the content we want to display
$data = <<<EOT
<div class="topbar">
My Text goes here
</div>
EOT;
// Output JavaScript code to write the data
printf('document.write(unescape("%s"));',
rawurlencode($data));
?>
so what we would like to do is be able to call a single section or div section by using something like "http://my website.com/thisscript?n=5" we just need to be able to output each section individually without the rest.
Thank you.