Jump to content

How do I let a user directly link to a file in my search results?


[-_-]

Recommended Posts

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)/¯

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.