|  | Posted by Rik on 01/24/07 17:49 
On Wed, 24 Jan 2007 18:23:36 +0100, rukkie <rukkie@belgacom.net> wrote:
 > Thanks for the reply ....
 
 Thank me by not topposting.
 
 > On 24 jan, 18:03, Rik <luiheidsgoe...@hotmail.com> wrote:
 >> On Wed, 24 Jan 2007 17:56:33 +0100, rukkie <ruk...@belgacom.net> wrot=
 e:
 >> > I first had defined the UPDATE button as  : <input name=3D"update"
 >> > value=3D"UPDATE" type=3D"submit">. That doesn't work ...
 >> > If I change the definition to <input name=3D"update" value=3D<? ech=
 o
 >> > "UPDATE".$nt['id']; ?> type=3D"submit">, then I can get the id numb=
 er in
 >> > the update script, but the display is not that good, because you se=
 e
 >> > UPDATE1, UPDATE7,UPDATE4 and so on ...
 >> > So I need something, so I can find back in the update script for wh=
 ich
 >> > row the update button was pressed. Each row has his unique id (whic=
 h  =
 
 >> is
 >> > not shown in the table)
 >>
 >> > Anyone has a suggestion on how to solve this ?'<input  =
 
 >> name=3D"update['.$id.']" value=3D"UPDATE" type=3D"submit">'
 >>
 >> In the update:
 >> $id =3D intval(reset(array_keys($_POST['update'])));
 >
 > Now I get some weird warning :
 >
 > Warning: array_keys(): The first argument should be an array in
 > xxxx.php on line 9
 
 Did you alter the name of the input like I told you?
 The HTML-source should look like: '<input name=3D"update[123]"  =
 
 value=3D"UPDATE">';
 After posting, var_dump $_POST to see what it contains.
 
 -- =
 
 Rik Wasmus
 * I'm testing several new newsreaders at the moment. Please excuse  =
 
 possible errors and weird content. *
  Navigation: [Reply to this message] |