bluecafe has asked for the wisdom of the Perl Monks concerning the following question:
and here is a code:
sub OutputSearchForm { my $oldSearch = $queryStringHash{'q'}; my $searchSelector = CreateSearchSelector(); my $q = $triplets{"Search"}; # The search query, as returned by Goo +gle print <<END_OF_HEADER; <form method=GET action="$scriptName"> <INPUT TYPE=hidden name=hl value=en> <table cellpadding=0 cellspacing=0 width="100%" border=0> <tr> <td width=5> </td> <td align=left><font face="arial,sans-serif"> <input type=hidden name=q value=\"$oldSearch\"> <input type=text name=q size=61 maxlength=256 value=\"$q\"> $searchSelector <nobr> <INPUT type=submit name=sa VALUE="Search within results +"> </nobr> </font></td> <td align=right valign=top></td> </tr> </table> </form> END_OF_HEADER }
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jryan) Carrying form values from submission to submission
by jryan (Vicar) on Oct 09, 2001 at 19:13 UTC | |
|
Re: Append query string
by CubicSpline (Friar) on Oct 09, 2001 at 18:44 UTC | |
|
Re: how to append query string
by cjensen (Sexton) on Oct 09, 2001 at 21:34 UTC |