[phplib] "move up/down" buttons for "select multiple" form fields From: Jens Benecke (jens <email protected>)
Date: 05/11/01

Hello all,

I have a form field in which the user is supposed to be able to move up or
down the elements (i.e. implement his own sorting algorithm). This should
work server-side because I don't want to rely on Javascript (I had a
solution for Javascript but I didn't find a way to pass the newly sorted
array back to PHP).

Has anybody done this yet? It should be a matter of two submit buttons
(up/down) which exchange the marked form element with its predecessor or
successor, depending on what submit button was pressed. But I cannot get it
to work.

It should work with PHPLIB, of course. ;)

-- 
Jens Benecke                            > "Dann nimm lieber gleich Pattex!"
                "Na, ob das was hilft - der Hersteller ist schließlich eine 
             Gesellschaft mit beschränkter Haftung :-)" (-- aus dem Usenet)
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored