Re: stuff form parameter into name=, bypassing

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Gentlemen, combining your suggestions, I have come up with , i.e.,

<form action="">
<p><input type="hidden" name="q" value="lyrics">
<select name="q">
<option>EPMD "I'm Housin'" ...
<input type="submit" value="">
<input type="submit" name="hl" value="en">

Relying on reverse engineering of Google parameters, I have achieved
both Chinese an English search choices, minimal clicking (a second
<input>, instead of a radio button, to choose English), the whole
shabazz weighing in at less than 10 KB, achieving my purely personal
diet goals for a trim figure (an ego, not bandwidth issue). And all in
a static HTML 4 Strict page with no Javascript or even CSS!

Can't use
 <button name="hl" value="en" type="submit">English</button>
Not supported in all browsers, at least my
favorite, ,
and looks bad in lynx too.

Can't make a label "English" for
 <input type="submit" name="hl" value="en">
Must show "en" to the user.
(Yes, could add "English: [en]" clutter.)

(Not a big deal, but:) the positions of the parameters in the URL
produced is dependant on the order of the submit buttons.

Anyway, not bad. (I am actually using PHP, but only to produce the
static web page. That's as far as I want to go with PHP in this

I did have a former "linkfarm" version of the page, but that bloats
the page to _twice_ the size (not a bandwidth issue, I just feel
repeating anything in the HTML source is silly.), whether hardwiring
several *, or just to Google query lines.

Big size savings were found when I removed all the </option> closing
tags. However I chose not the go even further. (Now it looks close to
tidy -w 0 -utf8 output, but not to total "tidy -omit" extremes.)

Site Timeline