Hi,
Im having trouble with a perl cgi.
I can get the content of the input type fields to my cgi script to process, no prolbem.
But the thing is, when I add a parameter to my script for the ACTION field, this parameter isn't transferred to my script.
Here is example code;
My main page is:
<FORM METHOD="POST" ACTION="/cgi-bin/test.pl?id=fubar" enctype="text/plain">
<B>Name :</B><INPUT TYPE="text" NAME="name" size="20">
<INPUT TYPE="submit" value="Execute">
</FORM>
my test.pl script is:
#!/usr/bin/perl -w
use strict;
use warnings;
use CGI qwstandard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
print $cgi->param('id');
$cgi->param('id') isn't defined when I use a FORM
It should print 'fubar' in this case
Anyone with tips or advice?
Thanks
Im having trouble with a perl cgi.
I can get the content of the input type fields to my cgi script to process, no prolbem.
But the thing is, when I add a parameter to my script for the ACTION field, this parameter isn't transferred to my script.
Here is example code;
My main page is:
<FORM METHOD="POST" ACTION="/cgi-bin/test.pl?id=fubar" enctype="text/plain">
<B>Name :</B><INPUT TYPE="text" NAME="name" size="20">
<INPUT TYPE="submit" value="Execute">
</FORM>
my test.pl script is:
#!/usr/bin/perl -w
use strict;
use warnings;
use CGI qwstandard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
print $cgi->param('id');
$cgi->param('id') isn't defined when I use a FORM
It should print 'fubar' in this case
Anyone with tips or advice?
Thanks