<form action="accview.pl" method="post">
<input type="hidden" name="sid" vaue="2425223">
<input type="hidden" name="accid" vaue="test">
<input type="hidden" name="invid" vaue="162">
<input type="image" name="cmdinv" src="invoice.gif">
</form>
it also works if i try to post the form like this:
<form action="accview.pl?sid=2425223&accid=test&invid=162" method="post">
<input type="image" name="cmdinv" src="invoice.gif">
</form>
however, instead of using an image for submitting it, i wanted to link a text to it in the following way:
accview.pl?sid=2425223&accid=test&invid=162&cmdinv
but it doesnt seem to work.
I would be greatful if someone can help me out.
Cheers
Linda
If you plan on swapping back and forth then you would need to test to see if the vars were posted and if not then access the get string.
#!/your/path/to/perl -wuse strict;
use CGI qw(:standard);# protect against file upload
# denial of service attacks
$CGI::DISABLE_UPLOADS = 1;my $q = new CGI;
print $q->header;
print $q->param('invid');