/    Sign up×
Community /Pin to ProfileBookmark

Hi I’m trying to tie a css document to a php file and add the HTML code inside the php document. My results menu contains the frames html and the menu.php is where I want the .png menu bar to show. So do I make a body header etc… tag at the top of the menu document to make it work?

Ive been trying all kinds of things and nothing seems to be working. ?

I also need the menu to be small just big enough to show the png menu bar and links. Its too large in height as it is now.

[B]Heres the menu source.[/B]

[code=php]<?php

// same as before, grab the search query to put into the different urls

$q = $_GET[“q”];

?>

<p>

<a href=”http://btjunkie.org/search?q=%20%<?php echo $q; ?>&uid=0&sort=” title=”search again with btjunkie” target=”result”>Btjunkie</a> |

<a href=”http://www.btmon.com/torrent/<?php echo $q; ?>” title=”search again with Bittorrent Monster” target=”result”>Bittorrent Monster</a> |

<a href=”http://www.eztvefnet.org/index.php?search=<?php echo $q; ?>” title=”search again with EZ-TV” target=”result”>EZ-TV</a> |

<a href=”http://fenopy.com/?keyword=<?php echo $q; ?>&select=0&order=0&sort=0&minsize=&maxsize=&search.x=0&search.y=0&search=Search” title=”search again with Fenopy” target=”result”>Fenopy</a> |

<a href=”http://www.fulldls.com/search-all-torrents/?qa=<?php echo $q; ?>” title=”search again with Fulldls” target=”result”>Fulldls</a> |

<a href=”http://isohunt.com/torrents/?ihq=<?php echo $q; ?>” title=”search again with Isohunt” target=”result”>Isohunt</a> |

<a href=”http://www.mininova.org/search/?search=<?php echo $q; ?>” title=”search again with Mininova” target=”result”>Mininova</a> |

<a href=”http://www.sumotorrent.com/searchResult.php?search=<?php echo $q; ?>” title=”search again with Sumotorrents” target=”result”>Sumotorrents</a> |

<a href=”http://thepiratebay.org/search/<?php echo $q; ?>/0/3/” title=”search again with The Pirate Bay” target=”result”>The Pirate Bay</a> |

<a href=”http://www.torrentreactor.net/search.php?search=&words=<?php echo $q; ?>&cid=0″ title=”search again with Torrentreactor” target=”result”>Torrentreactor</a> |

<a href=”http://www.torrentportal.com/torrents-search.php?search=<?php echo $q; ?>” title=”search again with Torrentportal” target=”result”>Torrentportal</a> |

<a href=”http://www.torrentspy.com/search?query=<?php echo $q; ?>&submit.x=0&submit.y=0″ title=”search again with Torrentspy” target=”result”>Torrentspy</a> | </p>

[/code]

[B]and heres the results source.[/B]

[code=php]<?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.eztvefnet.org/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.

?>

<html>

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

</html>[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @torrents spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...