PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Extended Search? (http://www.phpdig.net/forum/showthread.php?t=794)

marid 04-09-2004 02:39 AM

Extended Search?
 
Hi,

i build an Myrmecology (Ant Science) related Search Engine with PhpDig.

I now thing about following:
If a user goes to my site and search a word or sentence then i want want to give over the search to another form at the "beginning" of the results that searches another database (in this case a hymenoptera name server).

A link as example is looking like this:
http://atbi.biosci.ohio-state.edu:88...ewitti&Submit=

As i am not a Php Pro - has anyone perhaps done something like this and give me an idea how to do that?

Andre Schmidt
www.myrmecology.org

Charter 04-10-2004 12:18 PM

Hi. Perhaps use something like the following:
PHP Code:

<?php

if (isset($_REQUEST['query_string'])) {
    
$query_string urlencode($query_string);
}
else { 
$query_string "''"; }

$url "http://atbi.biosci.ohio-state.edu:8880/hymenoptera/nomenclator.name_entry?text_entry=".$query_string;

echo <<<END
<html><head><META http-equiv="Refresh" content="0;URL=$url"></head></html>
END;

?>

Remember to remove any "word" wrapping in the above code.

marid 04-10-2004 01:14 PM

Great!
 
Thats what i was looking for. Tested it and it works.

Thanks

Andre Schmidt


All times are GMT -8. The time now is 07:35 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.