Glese Posted January 4, 2012 Share Posted January 4, 2012 How can I achieve the following scenario with an anchor tag? if(isset($_POST['submit'])) { // execute script } I do need it for a label system to sort content with labels. Quote Link to comment https://forums.phpfreaks.com/topic/254322-execute-script-when-anchor-tag-is-clicked/ Share on other sites More sharing options...
trq Posted January 4, 2012 Share Posted January 4, 2012 <a href="?foo">click foo</a> <?php if (isset($_GET['foo'])) { echo "Do something foo"; } Quote Link to comment https://forums.phpfreaks.com/topic/254322-execute-script-when-anchor-tag-is-clicked/#findComment-1304057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.