how to do like this?

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!

Moderator: General Moderators

Post Reply
kanchan
Forum Commoner
Posts: 80
Joined: Tue Nov 30, 2004 12:03 pm

how to do like this?

Post by kanchan »

can anybody help me how to do like this...


in index.php page i have the thumbnail of one pic and on clicking that thumbnail the full image opens in next page like image.php?id=something


and now can u tell me the code how to do like this????
snicolas
Forum Commoner
Posts: 97
Joined: Tue Nov 09, 2004 8:32 am

Post by snicolas »

this will open a new window....
<a href="#" onClick="MyWindow=window.open('images.php?id=<?php echo yourID?>&lang=en','Chat','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=550,height=400'); return false;">
kanchan
Forum Commoner
Posts: 80
Joined: Tue Nov 30, 2004 12:03 pm

Post by kanchan »

and how to echo ID then....
kanchan
Forum Commoner
Posts: 80
Joined: Tue Nov 30, 2004 12:03 pm

Post by kanchan »

snicolas wrote:this will open a new window....
<a href="#" onClick="MyWindow=window.open('images.php?id=<?php echo yourID?>&lang=en','Chat','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=550,height=400'); return false;">
and then how does that images.php can recognise its own id????????
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

in images.php

Code: Select all

print_r($_GET);
Post Reply