[-_-] Posted November 9, 2008 Share Posted November 9, 2008 The way it is now a user cannot copy a link in the address bar and send someone a direct link to a specific file. They can only send them a link to a list of results. Is there any way I can enable people to link to a specific file? ??? Heres a sample of the code and a link below. <?php // grab the search query and request site from the url if($_POST["q"]){ $q = $_POST["q"]; }else{ $q = $_GET['q']; } $q = htmlentities(stripslashes(trim($q))); if($_POST['site']){ $site = $_POST["site"]; }else{ $site = $_GET['site']; } include('switch.php'); // finally create the code for the actual frames. This is simple HTML with the search query and site put into the menubar's url so we can change it later if wanted. ?> http://www.plentyoftorrents.com/results_new.php?site=Mininova&q=free+linux anyone? ¯\(°_o)/¯ Quote Link to comment https://forums.phpfreaks.com/topic/132014-how-do-i-let-a-user-directly-link-to-a-file-in-my-search-results/ Share on other sites More sharing options...
[-_-] Posted November 9, 2008 Author Share Posted November 9, 2008 Through my sites url* Like http://www.plentyoftorrents.com/results_new.php?site=Mininova&q=free+linux-torrent-id=101029 Quote Link to comment https://forums.phpfreaks.com/topic/132014-how-do-i-let-a-user-directly-link-to-a-file-in-my-search-results/#findComment-686010 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.