PDA

View Full Version : Extended Search?


marid
04-09-2004, 02:39 AM
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:8880/hymenoptera/nomenclator.name_entry?text_entry=Cladomyrma+hewitti&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

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
Thats what i was looking for. Tested it and it works.

Thanks

Andre Schmidt