Yep. the code is 100% useless if you wish to use Javascript but if you decide to use PHP for validation then the code is 100% workable and valuable. just a matter of deletion from second array. On Sun, Oct 5, 2008 at 3:58 AM, Sana Alamgeer <sanalmgr47@xxxxxxxxx> wrote: > thanks for helping me but this code is actually useless to me. the > situation is... there r two list boxes on my site having same items in both. > i want user to not to select the same items from the two list boxes. if > somehow user do so there must be an alert box to indicate the user or the > selected item in one list box should be automatically removed in the socond > list box. i dn't know which function should i call in javascriptn how to > cmpare these items. > pleeeeeeese help me i need it hardly. > regards > > SanaAlamgeer > > --- On Sun, 10/5/08, Aminul Islam <aminulsumon@xxxxxxxxx<aminulsumon%40gmail.com>> > wrote: > > From: Aminul Islam <aminulsumon@xxxxxxxxx <aminulsumon%40gmail.com>> > Subject: Re: problem > To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> > Date: Sunday, October 5, 2008, 4:44 AM > > > hope this example will help you > $A=array('first' ,'second' ,'third', 'forth'); > $B=array('another' ,'fifth', 'second', 'first',' hello'); > for($i=0;$i< count($A) ;$i++) > if(in_array( $B[$i],$A) ) > echo "Item found: ".$B[$i]; > > i am searching one by one item of $B array in array $A > > Thanks > Aminul > > On Sat, Oct 4, 2008 at 3:37 AM, Sana Alamgeer <sanalmgr47@yahoo. com> > wrote: > > > hello all, > > please tell me how to cmpare two lists' items. > > pleassssssssse > > i have been able to find the code in javascript. > > please help me > > regards > > > > SanaAlamgeer > > > > [Non-text portions of this message have been removed] > > > > > > > > -- > Md. Aminul Islam > http://www.shopno- dinga.com > Mob: 8801671670797 > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed] > > > -- Md. Aminul Islam http://www.shopno-dinga.com Mob: 8801671670797 [Non-text portions of this message have been removed]