Deivas Posted March 9, 2010 Share Posted March 9, 2010 How do I make it so if someone clicks on a link and it will sort everything by votes descending and the link will change to something like : index.php?sort=votes Do I have to use $_GET method? Link to comment https://forums.phpfreaks.com/topic/194663-indexphpblah/ Share on other sites More sharing options...
nafetski Posted March 9, 2010 Share Posted March 9, 2010 In your link, what you're going to do is something liek this <a href="index.php?sort=votes">Sort Votes</a> Then in your PHP file you're going to go [/code] <?php if ($_GET['sort'] == 'votes') { // Do stuff! } Link to comment https://forums.phpfreaks.com/topic/194663-indexphpblah/#findComment-1023887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.