how to pass POST variable by links to own pages?
Hi i wannna get variable $_POST by link to self pages. Example : <?PHP $var = 'PIG'; echo "<a href='test.php?var=$var'>link</a>"; if (isset($_POST['var'])) { echo $_POST['var']); } ?> it links to own pages. (test.php) It not works, who can help me please. Thanks A link cannot POST data, only GET . In contrast to the GET request method where only a URL and headers are sent to the server, POST requests also include a message body. This allows for arbitrary length data of any type to be sent to the server. Basically, a POST requires two requests, 1) the server receives the "normal" request, with