You could consider replacing these bits of code
$dest_data="dest_data".$i; $dest_temp=param($dest_data); if ($dest_temp eq "A"){ $selected1="selected"; } else {$selected1=" ";} if($dest_temp eq "B"){ $selected2="selected";} else{$selected2=+" ";} if($dest_temp eq "C"){ $selected3="selected";} else{$selected3=" ";} if($dest_temp eq "D"){ $selected4="selected";} else{$selected4=" ";} if($dest_temp eq "E"){ $selected5="selected";} else{$selected5=" ";} if($dest_temp eq "F"){ $selected6="selected";} else{$selected6=" ";} if($dest_temp eq "G"){ $selected7="selected";} else{$selected7=" ";} if($dest_temp eq "H"){ $selected8="selected";} else{$selected8=" ";} if($dest_temp eq "I"){ $selected9="selected";} else{$selected9=" ";} if($dest_temp eq "J"){ $selected10="selected";} else{$selected10=" ";} if($dest_temp eq "K"){ $selected11="selected";} else{$selected11=" ";} print "<SELECT NAME=\""; $dest_data="dest_data".$i; print $dest_data; print "\">"; print "<OPTION VALUE=\"\">SELECT</OPTION> <OPTION VALUE=\"A\" $selected1>A</OPTION> <OPTION VALUE=\"B\" $selected2>B</OPTION> <OPTION VALUE=\"C\" $selected3>C</OPTION> <OPTION VALUE=\"D\" $selected4>D</OPTION> <OPTION VALUE=\"E\" $selected5>E</OPTION> <OPTION VALUE=\"F\" $selected6>F</OPTION> <OPTION VALUE=\"G\" $selected7>G</OPTION> <OPTION VALUE=\"H\" $selected8>H</OPTION> <OPTION VALUE=\"I\" $selected9>I</OPTION> <OPTION VALUE=\"J\" $selected10>J</OPTION> <OPTION VALUE=\"K\" $selected11>K</OPTION> </SELECT>";
with something like this (untested)
$dest_data="dest_data".$i; print qq!<select name="$dest_data"><option value="SELECT">!; for my $val ('A'..'K'){ my $sel=($val eq param($dest_data)) ? "SELECTED" : ""; print qq!<option value="$val" $sel>$val!; } print q!</select>!;
poj

In reply to Re^3: Deleting Problem by poj
in thread Deleting Problem by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.