Hello All, Here is the situation, I have a bit of html that looks like this (i kinda hope you're viewing this with html turned off :-/ )
<input type="checkbox" name="per" value="Christy">Christy<br/> <input type="checkbox" name="per" value="Jane">Jane<br/> <input type="checkbox" name="per" value="Judy">Judy<br/> <input type="checkbox" name="per" value="Kelly">Kelly<br/> <input type="checkbox" name="per" value="Michelle">Michelle<br/> <input type="checkbox" name="per" value="Myer">Myer<br/> <input type="checkbox" name="per" value="Nephele">Nephele<br/> <input type="checkbox" name="per" value="Phillip">Phillip<br/> <input type="checkbox" name="per" value="Scott">Scott<br/> <input id="otherPer" type="checkbox" name="per" value="otherPer" onclick="handleCheck()">Other <input id="otherPerName" type="text" name="otherName" value="name"> when the user clicks the otherPer checkbox, they can then type a name into the otherName text box later i read the information in like so in order to concatenate their values into a string... ____________________________ my $newGuy = $query->param('otherName'); #holds what's in otherName my @people = $query->param('per'); #load the checked values into an array my $seeList; #string to hold final concatenation foreach $person(@people){ $seeList .= $person.","; } _________________________________ Which almost works except that it wont grab the name out of the otherName field. So I change the foreach loop to look like this... ____________________________________ foreach $person(@people){ if($person=="otherPer"){ $seeList .= $newGuy; }else{ $seeList .= $person.","; } } ____________________________________ When i do this, and the Other box is checked with a name in the otherName field. The otherName gets printed out instead of all the other names example, say someone checks Jane, Judy and Other with 'Bob' in the otherName box the first bit of code would yield Jane,Judy,otherPer the second bit of code yields BobBobBob If the Other box is not checked, NOTHING will get printed with the second bit... my question is why doesnt the second bit of code work?? Thanks J -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]