Re: Re: How to $_POST from a grid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Daniel Schierbeck <dasch@xxxxxxxxxx> wrote:


> I'd go with a POST form and a JavaScript
> 
> <form name="grid" method="post">
>      <input type="hidden" name="primary_id" />
>      <input type="button"
> onclick="document.grid['hidden'].value='123'" 
> value="foobar" />
> </form>
> 
Yes , that is exactly what I'm doing but it's
returning only the last record.

So here below is an example of the grid results.  
with $_GET I click on one of the returns under
primaryID, if I choose 1stRecord, 1stRecord comes up
in the update form.  If I choose 3rdRecord, 3rdRecord
come s up in the update form.
With $_POST, and i have a form, tried it around each
record, around the whole grid , doesn't seem to
matter.
Regardless of choosing 1st 2nd or 3rd, 3rd is the one
that comes up in the udpate form.

+----------+-----------+-----------+--------------+
|PrimaryID | Field2    | Field3    | Field3       |
+----------+-----------+-----------+--------------+
+----------+-----------+-----------+--------------+
|1stRecord | xxxxxx    | xxxxxx    | xxxxxx       |
+----------+-----------+-----------+--------------+
+----------+-----------+-----------+--------------+
|2ndRecord | xxxxxx    | xxxxxx    | xxxxxx       |
+----------+-----------+-----------+--------------+
+----------+-----------+-----------+--------------+
|3rdRecord | xxxxxx    | xxxxxx    | xxxxxx       |
+----------+-----------+-----------+--------------+

Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux