I'll see if I can explain it gently as you seem to be a gov't worker ;)

There is no "perl" translation... you just aren't thinking about it in a
web-app type of way.  The sequence would look like this...

1. display page "A" to user
2. user submits page "A" with hidden form field
3. perl script process input from page "A"
4. perl script prints new form page, creating a new hidden input field that
has the value that the script recieved from step 3.

If that makes sense, then the rest is easy... but I am sure something there
won't make sense.  So you might need to ask a more detailed question.

BTW - for step #3 you would probably use the CGI module to extract the form
data from the input to the script.  The code for steps #3 and #4 might look
like this...

use CGI qw(:cgi);

my $hidden_val = param('name_of_hidden_field');

print "Content-type: text/html\n\n";
print <<EOF;
<html>
<body>
<form action="foo.cgi">
 <input type="hidden" name="name_of_hidden_field" value="$hidden_val">
 <input type="text" name="bar">
 <input type="submit">
</form>
</body>
</html>
EOF



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 2:21 PM
To: [EMAIL PROTECTED]
Subject: Hidden field on a form in perl


I was wondering if anyone knows how to hide a field in a form so that it 
can be passed on to other forms, mainly for version number and some other 
information that i wish the user not to see and/or change. I know in HTML 
i could simply <input type="hidden" name="version" value="1.0"> yet I've 
looked through the manpages and a few books and can't seem to find the 
translation for this in perl. I will say I've only been using perl for 
maybe 3 weeks, so if your response is RTFM... i ask that you refer me to 
what section of the FM i should look to.

Thank you for any and all assistance.

Derrick 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to