Perlfect Solutions

[Perlfect-search] RE: perlfect-search digest, Vol 1 #389 - 4 msgs

Daniel Naber
Thu, 14 Nov 2002 17:03:20 +0100
On Thursday 14 November 2002 15:58, Maninder, Singh wrote:

> I need to call 2 different templates (search.html files) based on 2
> different domains.
> In the code it is referenced by $SEARCH_TEMPLATE{$lang}

You can misuse the language feature for that:

<input type="hidden" name="lang" value="en"> in one form
<input type="hidden" name="lang" value="fr"> in the other form

The second form will then use search_fr.html.