PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 04-09-2004, 02:39 AM   #1
marid
Green Mole
 
Join Date: Apr 2004
Posts: 3
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
marid is offline   Reply With Quote
Old 04-10-2004, 12:18 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 04-10-2004, 01:14 PM   #3
marid
Green Mole
 
Join Date: Apr 2004
Posts: 3
Great!

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

Thanks

Andre Schmidt
marid is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
libs/search_function.php extended and beautified blueyed Mod Submissions 1 12-13-2004 04:02 AM


All times are GMT -8. The time now is 10:20 AM.


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