Re: link to include
- From: Oli Filth <catch@xxxxxxxxxxxxxx>
- Date: Thu, 07 Apr 2005 12:09:17 GMT
martin wrote:
Hi,
i have a code to browse all thumb images in dir/ with link to pics to dir2/:
<?php
$folder1 = (folder1/); $folder2 = (folder2/); $open_folder= opendir($folder1);
while($pic = readdir($open_folder))
{
if($pic == '.' || $pic == '..'){
}
else{
?>
<a href="<?=$folder2.$pic?>"><img style="border: 0" src="<?=$folder1.$pic?>" title="<?=$pic?>" /></a>
<?php
}
}
?>
and it's OK. but..
how to modify the code so that the <a href...> would open the pics to the same page (a la include), not to blank new one as current? or all the code should be any other?
Unless you've done something weird to your browser, an <A href=...> link should open in the same window. Nothing to do with include, or PHP at all, in fact.
-- Oli .
- References:
- link to include
- From: martin
- link to include
- Prev by Date: echo or print?
- Next by Date: Re: PHP send email form problem
- Previous by thread: link to include
- Next by thread: PHP send email form problem
- Index(es):
Relevant Pages
|