There may be an easier way to do this, but this is the only way I can think of.
Create your link like
<a href="$db_script_url&db=
B&uid=$db_uid&Field1=$in{'Field1'}&Field2=$in{'Field2'}&view_records=1">
Search in database B</a>
Of course, you would replace "Field1" and "Field2" with the names of your fields and would probably have more possible fields to search on. For each one, use
&Field=$in{'Field'}
If there's a chance that any of the $in{'Field'} values will have spaces or any characters other than letters and numbers, you'll need to encode them before you put them in the URL. Add the following just before you print the URL.
Code:
foreach $key (keys %in) {
$in{$key}=~s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$in{$key}=~s/\%2F/\//g;
}
Be sure to close off any
print qq| statement with a
|; before you add this code and start another
print qq| statement before you print the URL.
As I say, there's probably an easier way to do it, but this will probably work.
------------------
JPD
[This message has been edited by JPDeni (edited April 03, 1999).]