DarrenPower
IS-IT--Management
Hi,
I'm currently attempting to migrate a select section from netscape 4 to netscape 6 and to be frank, I'm at a loss. Can anyone advise or help me on this matter? The code is as laid out below:
Cheers.
.cgi file:
#!/usr/local/bin/perl -- -*-perl-*-
# sun.com template drop down processor
$dirn = $0;
$dirn =~ s#(.*)/.*$#$1#;
chdir $dirn;
require "$dirn/cgi-lib.pl";
&ReadParse(*in);
$destination=$in{'productList'};
if ($destination eq "#"
{print "Location: $ENV{'SERVER_URL'}\n\n"; exit;}
#$destination =~ m!^http! || print "Location: \n\n";
$destination =~ m!^http! || print "Location: $ENV{'SERVER_URL'}$destination \n\n";
print "Location: $destination \n\n";
.html file
<p><FORM NAME="productGoto" ACTION="/cgi-bin/gotopic.cgi" METHOD="POST"></TD>
<TD BGCOLOR="#CCCCFF"><FONT COLOR="#000000" FACE="Geneva, Arial, Helvetica" SIZE="-1">
<SELECT NAME="productList" ONCHANGE="gotoFunction()" ONBLUR="return
options[0].selected = true">
<OPTION value="#">Catalogus per onderwerp :</option>
<OPTION VALUE="#">-------------------------------</OPTION>
<OPTION VALUE="/service/education/wlc/wlcjava_live.html">JAVA[tm] TECHNOLOGY</OPTION>
There is more html but this is the only relevant stuff...
I'm currently attempting to migrate a select section from netscape 4 to netscape 6 and to be frank, I'm at a loss. Can anyone advise or help me on this matter? The code is as laid out below:
Cheers.
.cgi file:
#!/usr/local/bin/perl -- -*-perl-*-
# sun.com template drop down processor
$dirn = $0;
$dirn =~ s#(.*)/.*$#$1#;
chdir $dirn;
require "$dirn/cgi-lib.pl";
&ReadParse(*in);
$destination=$in{'productList'};
if ($destination eq "#"
#$destination =~ m!^http! || print "Location: \n\n";
$destination =~ m!^http! || print "Location: $ENV{'SERVER_URL'}$destination \n\n";
print "Location: $destination \n\n";
.html file
<p><FORM NAME="productGoto" ACTION="/cgi-bin/gotopic.cgi" METHOD="POST"></TD>
<TD BGCOLOR="#CCCCFF"><FONT COLOR="#000000" FACE="Geneva, Arial, Helvetica" SIZE="-1">
<SELECT NAME="productList" ONCHANGE="gotoFunction()" ONBLUR="return
options[0].selected = true">
<OPTION value="#">Catalogus per onderwerp :</option>
<OPTION VALUE="#">-------------------------------</OPTION>
<OPTION VALUE="/service/education/wlc/wlcjava_live.html">JAVA[tm] TECHNOLOGY</OPTION>
There is more html but this is the only relevant stuff...