Ok, I'm stumped on how to best do this.
I have several ways that I can do it but seems messy to me so I'm asking for any help on this.
I have a form that is generated with the result of a query, each row returned from the query is
used in the form and a checkbox is added. I want the user to check off multiple records to be
modified and process the form.
I have a line that generates the form like so:
print "<tr><td>$id</td><td>$action</td><td>$request_dt</td><td><input type=checkbox name=request$id></td></tr>\n";
I want to be able to loop through and get the $id and $action and perform my query actions for that
record and move on. I know I have seen this used in many web sites but have never needed to do it myself.
I have toyed with using REs to get the $id from the name and process it but seems to me there must be a better way.
Thanks in advance for any advice!
-Ray
I have several ways that I can do it but seems messy to me so I'm asking for any help on this.
I have a form that is generated with the result of a query, each row returned from the query is
used in the form and a checkbox is added. I want the user to check off multiple records to be
modified and process the form.
I have a line that generates the form like so:
print "<tr><td>$id</td><td>$action</td><td>$request_dt</td><td><input type=checkbox name=request$id></td></tr>\n";
I want to be able to loop through and get the $id and $action and perform my query actions for that
record and move on. I know I have seen this used in many web sites but have never needed to do it myself.
I have toyed with using REs to get the $id from the name and process it but seems to me there must be a better way.
Thanks in advance for any advice!
-Ray