I have a php script that when the page loads [I look at the html source] and it is loading correctly... when I click on the link it's supposed to open an overlay but currently it's not working... hummm
I was told the following:
"if the HTML is showing up fine, but the browser isn't doing what it should when you click on the link, that's a client-side issue and is not PHP's fault. once the HTML output is finished, PHP's job is done.
the problem is that you haven't defined an anchor to match the link you echo above. nowhere do you use <a name="overlay"> to define where the #overlay link should go."
Ok with that being said I'm at a loss how to make that happen exactly... here's the code...
CODE
<?php
$lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($ol, $pic, $vid, $title) = explode('-', $line);
echo '<a href="#overlay'. $ol .'" rel="#overlay'. $ol.'"><img src="/modules/mod_test/img/'. $pic .'" alt="picture here" /></a><br />'. $title.'<br /><br />';
}
?>
<!-- overlays for videos -->
<?php
$lines = file('modules/mod_test/files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($ol, $pic, $vid, $title) = explode('-', $line);
echo '<div class="overlay" id="overlay' .$ol .'">';
echo '<a class="player" href="/clips/'. $vid .'"></div>';
}
?>
How can I add the anchor so the overlay will fire?
THanks!!