-2

header("Location: post-sent.html");

I know you can't open in new tab with PHP. How do I do it with javascript or HTML if possible?

2 Answers2

0

if( isset($_GET['$abc'] ){

//do your code here, example: echo 'window.open("page.php", $other_Attribute )';

}

0

As asked here: Open a URL in a new tab (and not a new window) using JavaScript

window.open(url,'_blank');

PHP is not opening anything on client. It just returns data :)

Anton Mitsev
  • 602
  • 9
  • 15