Posted by Rik on 01/24/07 20:02
On Wed, 24 Jan 2007 20:04:32 +0100, rukkie <rukkie@belgacom.net> wrote:
> thanks a lot.
You'd really thank me by starting to bottompost instead of toppost.
>> >> '<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 9Did you alter the name of the input like I told y=
ou?
>> The HTML-source should look like: '<input name=3D"update[123]"
>> value=3D"UPDATE">';
>> After posting, var_dump $_POST to see what it contains.
>>
> At the end I've got it working with this part of code : <?echo "<input=
> name=3D\"update[".$nt['id']."]\""; ?>
> Some quotes and/or double quotes makes the difference
That's why I said:
'<input name=3D"update['.$id.']" value=3D"UPDATE" type=3D"submit">'
Seems a lot more readable then:
"<input name=3D\"update[".$nt['id']."]\"" value=3D\"UPDATE\" =
type=3D\"submit\">";
-- =
Rik Wasmus
* I'm testing several new newsreaders at the moment. Please excuse =
possible errors and weird content. *
Navigation:
[Reply to this message]
|