How does one launch a new page in Php that is to open in a new Web browser

Hello,

How does one launch a new page in Php that is to open in a new Web browser and not in the current page.

So for example say I want to open page xyz.php

via regular HTML I would open this in a new browser with target=“new”

How does one do the same via Php via command like:

header("Location: xyz.php ");
exit();

Regards,

This is the wrong forum for this. Application design is for program design theory - not specific “how can I” questions.

That said, PHP cannot control the window the browser opens the page in. That would either be done through Javascript’s window.open function, or by setting the target attribute of the referring link to “_blank” as follows


<a href="newpage.php" target="_blank">Link</a>

What Michael Morris said.

Thread closed.