|
Posted by Geoff Berrow on 01/24/07 17:27
Message-ID: <1169657792.959426.116980@s48g2000cws.googlegroups.com> from
rukkie contained the following:
>I first had defined the UPDATE button as : <input name="update"
>value="UPDATE" type="submit">. That doesn't work ...
>If I change the definition to <input name="update" value=<? echo
>"UPDATE".$nt['id']; ?> type="submit">, then I can get the id number in
>the update script, but the display is not that good, because you see
>UPDATE1, UPDATE7,UPDATE4 and so on ...
>So I need something, so I can find back in the update script for which
>row the update button was pressed. Each row has his unique id (which is
>not shown in the table)
>
>Anyone has a suggestion on how to solve this ?
One way is to make each row a separate form and use a hidden field. to
pass the id. Alternatively use checkboxes to get an array of ids and do
a multiple update with a single submit button.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|