Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pull down menu in Netscape

Status
Not open for further replies.

darkom

Programmer
Apr 14, 2000
28
CA
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 &quot;<HR>&quot;;
print &quot;<FORM ACTION=' . &quot;$webserver&quot; . &quot;/cgi/WDJcgiStart.cgi' METHOD='GET'>&quot;;
print &quot;<INPUT TYPE='HIDDEN' NAME='script' VALUE='$logfile.cgi'>&quot;;
print &quot;<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0><TR><TD>&quot;;
print &quot;Composante choisie : &quot;;
print &quot;</TD><TD>&quot;;
print &quot;$composante&quot;;
print &quot;<INPUT TYPE='HIDDEN' NAME='composante' VALUE='$composante'>&quot;;
print &quot;</TD></TR><TR><TD>&quot;;
print &quot;Choisir configuration : &quot;;
print &quot;</TD><TD>&quot;;
print &quot;<SELECT NAME='action'>&quot;;
print &quot;<OPTION VALUE='mig-ethernet' SELECTED>MIG-ETHERNET&quot;;
print &quot;<OPTION VALUE='mig-tokenring'>MIG-TOKEN-RING&quot;;
print &quot;<OPTION VALUE='mic-hprip'>MIC-HPRIP&quot;;
print &quot;<OPTION VALUE='mig-hprip'>MIG-HPRIP&quot;;
print &quot;</SELECT> &quot;;
print &quot;</TD></TR>&quot;;
print &quot;</TABLE>&quot;;
print &quot;<BR>&quot;;
print &quot;<input TYPE='submit' VALUE='Exécuter'>&quot;;
print &quot;</FORM>&quot;;
}
 
Try adding an end option tag (</OPTION>) at the end of each option. Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top