<!-- using GET will make the QUERY_STRING as mentioned in the previous post, but.. that's not how it's supposed to be? --> Who suggested you use get? I said as long as action is /foo/bar.cgi?chicken=ididid Example
#!/usr/bin/perl -- use strict; use warnings; use CGI(); $|=1; $ENV{QUERY_STRING}=""; { my $q = CGI->new("".$ENV{QUERY_STRING}); $q->param(qw' chicken ididid '); print join "\n", $q->start_html, $q->start_form( -method=>'POST', -action=> $q->self_url, -enctype=> &CGI::MULTIPART ), $q->filefield('file'), $q->hidden(pregeneratedID => 123456 ), $q->end_form, $q->end_html; } __END__ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-U +S"> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 +" /> </head> <body> <form method="post" action="http://localhost?chicken=ididid" enctype=" +multipart/form-data"> <input type="file" name="file" /> <input type="hidden" name="pregeneratedID" value="123456" /> </form> </body> </html>
In reply to Re^3: Passing database ID to \&hook through $data (CGI)
by Anonymous Monk
in thread Passing database ID to \&hook through $data (CGI)
by k2OS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |