What script is needed so that when you click on a button in a PHP program, it goes to a link?
Closed due to the fact that Nicolas Chabanovsky ♦ 15 Feb '18 at 13:35 is incomprehensible.
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Which script, which program, which button? Php in general with the buttons does not work, not counting the winbinder. What do you want to do with what result? - Sh4dow
- oneheader ("Location: URL of the link"); :-D - ivkremer
- @ mihai567 [read] [1] and think whether it should be given to you) [1]: habrahabr.ru/post/142504 - Palmervan
4 answers
Maybe html?
<a href='http://***'><button>Кнопка с текстом</button></a> <a href='http://***'><button><img src="images/umbrella.gif" alt="Зонтик" style="vertical-align: middle"> Кнопка с рисунком</button></a>
If there is no need for data transfer, then it is better to link events through js. It will be faster. Otherwise, the option of processing the request sent when you click on the button, and as above answered to process the header, but then you get a double page refresh.
I suppose that TS'u need was August 23, 2011 it)
echo '<a href="http://site.com">site.com</a>';
Rasmisha , Maybe you mean target?
<a href="logs.txt" target="_blank"> <button> Logs </ button> </a>