Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by IOrdy (Friar)
on Jun 02, 2004 at 00:32 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found