Jump to content

Archived

This topic is now archived and is closed to further replies.

lil-eminem300

NEW WINDOW!!

Recommended Posts

I am starting to think very poorly of php. How do I make php links open in a new window?

Please modify these codes for me so that they open in a new window

Code: 1
[code]<?php include("http://www.despair.nu/link.php?uid=1018") ?>[/code]

Code: 2
[code]<?php readfile("http://www.exentrique.com/link.html?user=lileminem300"); ?>[/code]

Share this post


Link to post
Share on other sites
that's not what those functions do. include() includes the file in your current files, and readfile reads the file. they have nothing to do with displaying links. if you want to display a link on your page and have it open an new window, that's an html thing.

<a href='blah.php' target='_blank'>blah</a>

if you want to display it through php then you would do something like

echo "<a href='blah.php' target='_blank'>blah</a>";

Share this post


Link to post
Share on other sites
^^ OH OK, I got that from a rotation site. If I did something like

[code]<a target="_blank" href="http://www.despair.nu/link.php?uid=1018">Despair</a>[/code]

I would get [a href=\"http://www.despair.nu/link.php?uid=1018\" target=\"_blank\"]http://www.despair.nu/link.php?uid=1018[/a]

Its shows two links, and they just didn't put the target bank in their links

Share this post


Link to post
Share on other sites
well you need to find in their code where they actually echo out the link and add the target = "_blank" to it then

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.