View Full Version : double link for php include?

08-29-2005, 06:09 AM
hi, i'm doing somethign where when a button is clicked it includes two diferent things... i got everything handled except one thing. in html how do i make a link that has two links? for example: i've got href="index.php?f=home.php" as the link, i want it to ALSO link to t=/images/main-image.jpg when the link is clicked.

i hope this is possable...

08-29-2005, 10:38 AM

<a href="index.php?f=home.php" onclick="window.open('t=images/main-image.jpg' ,'newwin');">click me</a>

Something like that??



08-29-2005, 03:33 PM
No, he wants a button that will combine two different strings into one query string by the looks of things, this needs to be asked in the PHP forum.

08-29-2005, 10:03 PM
<a href="index.php?f=home.php&t=images/main-image.jpg">Link Name</a>

08-30-2005, 10:51 AM
<a href="index.php?f=home.php&t=images/main-image.jpg">Link Name</a>

I did wonder myself why not just do that. I presumed there must be some sort of reason it wouldn't work for him but couldn't for the life of me work out why not :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum