[Catalyst] Insert Multiple rows - GOOD CODE

Will Smith willbelair at yahoo.com
Mon Dec 19 21:08:32 CET 2005


thank you so much. That does exactly what I want to. 
  If this is not too much, could you show me how to do that with two input text fields. I was trying to do what I've learn from you, but could not get it. Need to learn more. All I need is just another text field:
  <input type=text name="artistid"> -- <input type=text name="artistname"> <br>
  <input type=text name="artistid"> -- <input type=text name="artistname"> <br>
  <input type=text name="artistid"> -- <input type=text name="artistname"> <br>
..
  thank you.
  

foreach my $artist ( @{$c->req->params->{artistid}} ) {
my $cd = mymusic::M::CDBI::Cd->find_or_create(
artistid => $artist
);
}

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051219/ab42860a/attachment.htm


More information about the Catalyst mailing list