how to make a php link which will open in new tab
what should be the php code to open a link in new tab.
how i can make a link in php which will open in new tab?

Recommended Answers

All 2 Replies

It is actually the HTML that you need not PHP. In your link you add target=_blank. Depending on the browser and the settings, it may open in a new tab or a new window.

To fully show what Chrishea said:

<a href="" target="_blank">Link Name</a>

Hope this helps! Good luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.