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. 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"; } 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
Archived
This topic is now archived and is closed to further replies.