RE: [PHP] How to $_POST from a grid
| From: | Graham Cossey | Date: | Thu, 25 Nov 2004 08:51:15 +0000 |
| Subject: | RE: [PHP] How to $_POST from a grid | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202831@lists.php.net to get a copy of this message | ||
[snip]
>
> I'm doing my development in Dreamweaver though the
> code is basic. To get to the grid I'm passing over
> the userID . Then basic a select statement in the
> results grid with a while loop the returns all the
> records related to the userID.
>
> It's just odd - because in Dreamweaver I build the
> grid with one table row, place my echo fieldx in each
> cell, then create a "repeat region" around the row.
> The repeat region is the while loop.
>
> The behaviour though is different for whatever reason.
> Using a link with GET (paramter in the URL) it
> distinguishes each primaryID correctly. Yet with POST
> no. As Jason just posted, yes it has individual submit
> buttons, yet they solely return the last record.
[snip]
Hi Stuart
Have you looked at the HTML generated by your PHP code?
Using view source you'll see what values each of your 3 forms contains and
therefore what will be submitted in the POST. My guess from one of your
previous posts is that all 3 forms contain the same value in the (hidden) ID
field. You were getting the value from a class but did not appear to be
passing any kind of index to the class to determine which value to return.
HTH
Graham