...

View Full Version : double link for php include?



spoofm0nkey
08-29-2005, 07: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...

E-Liam
08-29-2005, 11:38 AM
Hi,

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

Something like that??

Cheers

LiaM

Pennimus
08-29-2005, 04: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.

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

Pennimus
08-30-2005, 11: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