mabey you mean a hidden field?
like
<input type="hidden" name="bla" value="mm hmm">
or
print hidden(-name=>'bla', -value=>'mm hmm');
if your using CGI.pm | [reply] [d/l] [select] |
Well, by definition, the only way a sgi program can receive parameters is via a fields within a pair of <FORM> </FORM> tags. These are coded as INPUT, SELECT or TEXTAREA fields. Now, if what you are wanting is to have some values that you set on the form, but the user cannot see and (normally) change, then you can use hidden fields:
<FORM ACTION="/cgi-bin/formprocess.perl" METHOD="post">
<INPUT TYPE="hidden" NAME="formtype" VALUE="testform">
. . . .
</FORM>
Now along with other parameters that CGI.pm will retreive, there will be a parameter "formtype" with a value of "testform".
| [reply] [d/l] |
| [reply] [d/l] [select] |
Just the same, you could add an extra arg on the end of the cgi request:
http://www.example.com/foo.cgi?param1=foo¶m2=bar&extrasneakyextrap
+aram=foobar
This assumes that the cgi does no sanity checking on args it recieves.
BlueLines
Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary. | [reply] [d/l] |