Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Logical question-to upate DB records

by IOrdy (Friar)
on Jun 02, 2004 at 00:32 UTC ( #358906=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Logical question-to upate DB records
in thread Logical question-to upate DB records

You could use your TicketNo to modify the name of your value so you have a unique key to search for.
#!/usr/bin/perl -w use strict; =cut XHTML <td><input type="checkbox" name="update" value="<TMPL_VAR NAME=TicketN +o>" /></td> <td><!-- TMPL_VAR NAME=TicketNo --></td> <td><!-- TMPL_VAR NAME=Customer --></td> <td><!-- TMPL_VAR NAME=UserName --></td> .... <td><input type="text" name="detail_<TMPL_VAR NAME=TicketNo>" value="< +TMPL_VAR NAME=AssignTo>" size="11" /></td> =cut ... my @update = $query->param('update'); foreach my $ticket_no (@update) { my $assign_to = $query->param('detail_'.$ticket_no); next unless defined $assign_to; # do something with $ticket_no => $assign_to; print qq|assign ticket number $ticket_no to $assign_to \n|; }

Replies are listed 'Best First'.
Re: Re: Re: Re: Logical question-to upate DB records
by thisisperl (Novice) on Jun 02, 2004 at 17:14 UTC
    yup, that's what I am doing now. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://358906]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2023-01-29 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?