emediastudios Posted January 7, 2009 Share Posted January 7, 2009 Hi everyone. A simple one, never the lesss doing my head in <a href=images/applications/".$info[picname]." rel=lightbox> I cant get it to work, in the source code of the site it looks as above, and lightbox dont work. It should look like this in the page source <a href=images/applications/".$info[picname]."rel="lightbox"> but i get errors when i put the "" around lightbox I tried putting slashes there and no luck Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/ Share on other sites More sharing options...
dreamwest Posted January 7, 2009 Share Posted January 7, 2009 echo "<a href=images/applications/\".$info[picname].\" rel=lightbox>"; Variable needs to be in <?php ?> tags Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-731572 Share on other sites More sharing options...
emediastudios Posted January 7, 2009 Author Share Posted January 7, 2009 yeah thats all there. here is all the code. <?PHP $content .= "<td valign=\"bottom\"><br><a href='admin.php?p=temp_models&id=".$info[tempmodelid]."'><strong>Delete this application</strong></a><br>".$info[name]."<br><a href='mailto:".$info[email]."?subject=Jimmys Promotions and Modelling Agency Model Application'>".$info[email]."</a><br><a href=images/applications/".$info[picname]."rel=lightbox><img src='images/applications/".$info[picname]."' alt='".$info[name]."' width='300'/><a/><br><br></td>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-731574 Share on other sites More sharing options...
l_kris06 Posted January 7, 2009 Share Posted January 7, 2009 <?PHP $content .= "<td valign=\"bottom\"><br><a href='admin.php?p=temp_models&id=".$info[tempmodelid]."'><strong>Delete this application</strong></a><br>".$info[name]."<br><a href='mailto:".$info[email]."?subject=Jimmys Promotions and Modelling Agency Model Application'>".$info[email]."</a><br> <a href='images/applications/'".$info[picname]." rel='lightbox'><img src='images/applications/".$info[picname]."' alt='".$info[name]."' width='300'/><a/><br><br></td>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-731640 Share on other sites More sharing options...
emediastudios Posted January 7, 2009 Author Share Posted January 7, 2009 tried that, didnt work, really needs the "" wrapped around the word lightbox Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-732068 Share on other sites More sharing options...
premiso Posted January 7, 2009 Share Posted January 7, 2009 I would suggest sticking to 1 set of quotes and staying that way, you go in and out different times with different quotes. <?php $content .= '<td valign="bottom"><br><a href="admin.php?p=temp_models&id='.$info['tempmodelid'].'"><strong>Delete this application</strong></a><br>'.$info['name'].'<br><a href="mailto:'.$info['email'].'?subject=Jimmys Promotions and Modelling Agency Model Application">'.$info['email'].'</a><br><a href=images/applications/'.$info['picname'].' rel="lightbox"><img src="images/applications/'.$info['picname'].'" alt="'.$info['name'].'" width="300" /><a/><br><br></td>'; ?> You will also notice I put ' around the array indexes to avoid the "undefined constant" notice. Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-732072 Share on other sites More sharing options...
emediastudios Posted January 7, 2009 Author Share Posted January 7, 2009 Thanks, thats it, the code looks fine in the source code, thanks a lot, lightbox not working though, is something else now, but at least the code is right. Quote Link to comment https://forums.phpfreaks.com/topic/139841-solved-lightbox/#findComment-732076 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.