Posted on 2004-04-26
I have the following programs working well individually.
I am having problems linking them all together.
Problem A) I want 1.cgi to pass a hidden variable to 2.html
This is what I tried:
print "<FORM METHOD=POST action=\"/htdocs/intranet/2.html\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"ReqCode\" VALUE=\"$allreqs\">\n";
And this gives me error. Is it because I cannot call an html from a cgi? How else can I do it?
Problem B) In 2.html, I want to have 2 url links as bullets and pass the same hidden variable to 3.cgi and 4.cgi
* Option 1? Click here (should link to 3.cgi passing parameter ReqCode)
* Option2? Click here (should link to 4.cgi passing parameter ReqCode)
I cannot have submit buttons, so I am guessing the only way to pass these paramets is by url? I did try
<a href = 3.cgi?name=ReqCode&value=1> But in my 3.cgi, $query->param('ReqCode') does not have any value.
(I don't care if the name-value of the hidden var get displayed on the browser)
How can I resolve these 2 issues?