PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
remove the right angle quote as it's a binary character. If you look closely, your href attribute is surrounded by a single quote. Your added codes are trying to use double quotes, which won't break out of the single quote attribute of the href. Also, note how the double quotes require escaping.
The code posted above ... I notice when you put ya mouse over the link .. at the bottom of the browser it is displaying cid=$cid rather than cid=2 or what ever the id is ..
Also if I look at the properties of the popup window .. the address is:
../data.php?action=gallery&cid=1
I guess it should be:
../data.php?action=gallery&cid=1&pid=2
Why would it be leaving out the &pid=2 in the popup window .. But if i right click the link and open in new window .. it shows the full url and picture fine?
The code is fine, its only Phenom posted code that didnt return the $cid value, yours and others return it fine .. I guess it was sommin in the style of code ..
The code ol4pr0 has posted above doesnt open the picture in the new window .. I have tried it im that manner allready .. and the \" \" doesnt work .. It opens the picture in the same window not in the popup window ..
and using 'bla' seems to open the popup window but not load the image ..
I am still unable to get this to work .. using it with plain html works fine .. but trying to mix it with php I cant seem to get it to work properly .. when you click on the link .. it opens the popup window .. but nothin loads in it .. if you right click on the link and use open in new window .. it opens the link fine?