RE: [PHP] How to $_POST from a grid
| From: | Stuart Felenstein | Date: | Thu, 25 Nov 2004 09:29:37 +0000 |
| Subject: | RE: [PHP] How to $_POST from a grid | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202834@lists.php.net to get a copy of this message | ||
--- Graham Cossey <graham@cossey.plus.com> wrote:
> 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
>
Graham - hope your doing good!
It is 4:25am here but just fixed the problem.
Solution - I created my standard repeat region around
all fields I want returned. Within the repeat region
I put a form around the submit button and included the
hidden element as well in the form. So each record
returned has a seperate form around the button. It
works! Records returned properly.
Stuart