Hey guys! First of all: NO JAVASCRIPT! I got a link. This link opens a site in a new tab. But also onclick the site should be reloaded! Solution to reload would be turn the link into a submit button, but then the submit button can't open a site in a new tab.... How could I solve this? With PHP and HTML only. Thank you!
Why do you say submit button can't open in new page? Just use _target=blank. For example; <form action="#" method="post" target="_blank"> <input type="submit"> </form> HTML:
I don't understand... This opens my link : an extern website which I can't modify. But how to reload the actual site? How with Request?
May I ask why do you want to avoid javascript? Here's the php for reload. if(isset($_POST['Submit'])) { header("Location: http://yourpagehere.com"); } PHP:
Because some people are still surfing with JS disabled... I think you missunderstood what I want to realize... I want a button. This button opens onclick a website in a new tab. But also it refreshes the actual site. I think I will just use JS, and add a notice. Well nevermind, thanks anyway !