PDA

View Full Version : need to make my php menu thin and have a background image



nemo65
20 Nov 2007, 11:11 PM
Hi I'm having trouble making my top banner frame thin its way to wide. Does anyone know how anything about frames in php here?
Heres the code that contains the frame information. and heres the page it is on http://www.plentyoftorrents.com/result.php it comes from a search on the main page http://www.plentyoftorrents.com

<?php




















// grab the search query and request site from the url


























$q = $_POST["q"];




















$site = $_POST["site"];



































// here we use a switch statement to define our url























switch ($site) {


























case "Mininova":



































$url = "http://www.mininova.org/search/?search=". $q;
































break;





























case "Btjunkie":























$url = "http://btjunkie.org/search?q=". $q;




















break;

















case "Isohunt":


























$url = "http://isohunt.com/torrents/?ihq=". $q;



































break;

















case "Torrentspy":






































$url = "http://www.torrentspy.com/search?query=". $q ."&submit.x=0&submit.y=0";



































break;





case "Torrentreactor":






































$url = "http://www.torrentreactor.net/search.php?search=&words=". $q ."&cid=0";



































break;





case "Sumotorrents":






































$url = "http://www.sumotorrent.com/searchResult.php?search=". $q;



































break;





case "Torrentportal":






































$url = "http://www.torrentportal.com/torrents-search.php?search=". $q;



































break;








case "Torrentvalley":






































$url = "http://www.torrentvalley.com/search.php?search=". $q . "&x=0&y=0&act=1&cat=0&trss=1";



































break;





case "Fenopy":






































$url = "http://fenopy.com/?keyword=". $q . "&select=0&order=0&sort=0&minsize=&maxsize=&search.x=0&search.y=0&search=Search";



































break;





case "Fulldls":






































$url = "http://www.fulldls.com/search-all-torrents/?qa=". $q;



































break;





case "EZ-TV":






































$url = "http://www.eztv.it/index.php?search=".$q;



































break;








case "Bittorrent Monster":






































$url = "http://www.btmon.com/torrent/". $q;



































break;





case "Torrentz":






































$url = "http://www.torrentz.com/search?q=". $q. "&x=0&y=0";



































break;





case "The Pirate Bay":






































$url = "http://thepiratebay.org/search/". $q. "/0/3/";



































break;


}

















// 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.

















?>




















<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>


<title>Click Above Links To Try Search Again</title>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />




















<frameset rows="10%, 90%" frameborder="0" noresize="noresize" scrolling="no" marginwidth="0" marginheight="0">























<frame src ="menu.php?site=<?php echo $site; ?>&amp;q=<?php echo $q; ?>" />


























<frame src ="<?php echo $url; ?>" name="result"/>




















</frameset>








</head>


<body>





</body>














</html>



Thanks for any help.