Gossamer Forum
Home : Products : DBMan : Customization :

Call a URL from Searchmaschine

Quote Reply
Call a URL from Searchmaschine
I would like in sub html_record call a URL from a Searchmaschine







Example: ( This is working )

$searchword = 'werner';
$var = "http://suche.fireball.de/fcgi/query1.fcg?action=query&pg=express&q=$searchword&what=german_web ";

<tr>
<td width="100%"><font face="Arial" size ="2"><strong>Name Searchmaschine: <a href="$var" target="_blank">$rec{'name_searchmaschine'}</strong></font></td>
</tr>



This is not working:

$searchword=$rec{'searchword'}; ### (Werner)
$var = $rec{'urls_searchmaschine'};

<tr>
<td width="100%"><font face="Arial" size ="2"><strong>Name Searchmaschine: <a href="$var" target="_blank">$rec{'name_searchmaschine'}</strong></font></td>
</tr>

I hope it is understanding. My englich ist not so good.

What is the problem ?

Thank you.
Quote Reply
Re: [WernerW] Call a URL from Searchmaschine In reply to
Hi,

what will be $rec{'urls_searchmaschine'}?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Call a URL from Searchmaschine In reply to
This is a input field from db-man. I have inputfields: name_searchemachine, url_searchmachine and searchword.

Do you now understand my question ?

Werner
Quote Reply
Re: [WernerW] Call a URL from Searchmaschine In reply to
No,Unsure.

So what does not work above?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [WernerW] Call a URL from Searchmaschine In reply to
Will the main url path always be the same such as:

http://suche.fireball.de/fcgi/query1.fcg?action=query&pg=express&q=

You could define the path variable as:

$path= "http://suche.fireball.de/fcgi/query1.fcg?action=query&pg=express&q="

and you could just use:

<a href="$path$rec{'searchword'}&what=german_web" target="_blank">

or will the url_searchmachine always be different and you just want to be able to add the searchword ?

Perhaps you could give some more examples of exactly what you want to accomplish with the full urls.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/