Would someone tell me what i am doing wrong here. the pull down menu works great in IE but doesn't in Netscape.
It lists the choices as text like so:
Chose configuration : MIG-ETHERNETMIG-TOKEN-RINGMIC-HPRIPMIG-HPRIP
instead of putting them in a pull down menu like so :
Chose configuration : MIG-ETHERNET
MIG-TOKEN-RING
MIC-HPRIP
MIG-HPRIP
My html code is in a CGI (Perl). I tried the html code only and it works. but from my CGI it doesn't.
Here is the perl code :
############################################################################
#
# Fonction: print_form_action
#
# Description: Affiche le formulaire de choix d'action
#
# Paramètres:
#
############################################################################
sub print_form_action
{
print "<HR>";
print "<FORM ACTION=' . "$webserver" . "/cgi/WDJcgiStart.cgi' METHOD='GET'>";
print "<INPUT TYPE='HIDDEN' NAME='script' VALUE='$logfile.cgi'>";
print "<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0><TR><TD>";
print "Composante choisie : ";
print "</TD><TD>";
print "$composante";
print "<INPUT TYPE='HIDDEN' NAME='composante' VALUE='$composante'>";
print "</TD></TR><TR><TD>";
print "Choisir configuration : ";
print "</TD><TD>";
print "<SELECT NAME='action'>";
print "<OPTION VALUE='mig-ethernet' SELECTED>MIG-ETHERNET";
print "<OPTION VALUE='mig-tokenring'>MIG-TOKEN-RING";
print "<OPTION VALUE='mic-hprip'>MIC-HPRIP";
print "<OPTION VALUE='mig-hprip'>MIG-HPRIP";
print "</SELECT> ";
print "</TD></TR>";
print "</TABLE>";
print "<BR>";
print "<input TYPE='submit' VALUE='Exécuter'>";
print "</FORM>";
}
It lists the choices as text like so:
Chose configuration : MIG-ETHERNETMIG-TOKEN-RINGMIC-HPRIPMIG-HPRIP
instead of putting them in a pull down menu like so :
Chose configuration : MIG-ETHERNET
MIG-TOKEN-RING
MIC-HPRIP
MIG-HPRIP
My html code is in a CGI (Perl). I tried the html code only and it works. but from my CGI it doesn't.
Here is the perl code :
############################################################################
#
# Fonction: print_form_action
#
# Description: Affiche le formulaire de choix d'action
#
# Paramètres:
#
############################################################################
sub print_form_action
{
print "<HR>";
print "<FORM ACTION=' . "$webserver" . "/cgi/WDJcgiStart.cgi' METHOD='GET'>";
print "<INPUT TYPE='HIDDEN' NAME='script' VALUE='$logfile.cgi'>";
print "<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0><TR><TD>";
print "Composante choisie : ";
print "</TD><TD>";
print "$composante";
print "<INPUT TYPE='HIDDEN' NAME='composante' VALUE='$composante'>";
print "</TD></TR><TR><TD>";
print "Choisir configuration : ";
print "</TD><TD>";
print "<SELECT NAME='action'>";
print "<OPTION VALUE='mig-ethernet' SELECTED>MIG-ETHERNET";
print "<OPTION VALUE='mig-tokenring'>MIG-TOKEN-RING";
print "<OPTION VALUE='mic-hprip'>MIC-HPRIP";
print "<OPTION VALUE='mig-hprip'>MIG-HPRIP";
print "</SELECT> ";
print "</TD></TR>";
print "</TABLE>";
print "<BR>";
print "<input TYPE='submit' VALUE='Exécuter'>";
print "</FORM>";
}