develooper Front page | perl.beginners | Postings from March 2002

in over my head, but having fun treading water

From:
James Woods
Date:
March 2, 2002 00:48
Subject:
in over my head, but having fun treading water
Message ID:
F69ilcPKMQJRTGoigck00014c1b@hotmail.com
Greetings all,

I've attached my code as a text document (hope this newsgroup takes 
attachments!)

The address of the page that I'm working on is 
http://staff.washington.edu/guru/cards.cgi

The page seems like it should be pretty simple... but I'm a total newbie to 
perl.

When you check various boxes in the "Play" column and click "Update" the 
following should happen:
1) the checked cards should be removed from the "Draw Deck"
2) the checked cards should be added to "Played Cards"

The cards are removed from the "Draw Deck" just fine, but the "Played Cards" 
side is populated with the next card in the "Draw Deck" list (as opposed to 
the exact card you checked).  It's easiest to just check the first card, and 
pay attention to the second card.  The second card will show up in the 
"Played Cards" list, but the first card (the one you checked) gets removed 
from the "Draw Deck".

I'm figuring that I'm just missing some @rray thing (being 0-based and all), 
but I just can't see what I'm doing wrong.

I appreciate all the help!

-James

James Woods
Web Developer for Christ by night
WebMaster at http://www.tacoma.washington.edu by day
Web Applications and Cold Fusion Programming
gurufoo@hotmail.com





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About