gaurav singh has asked for the wisdom of the Perl Monks concerning the following question:

dear monks, I wanna move the selected items from one listbox to other on the same page . I am using CGI to generate the page. thanks

Replies are listed 'Best First'.
Re: To move values btwn listboxes
by jkva (Chaplain) on Feb 18, 2005 at 09:24 UTC
    update : rewrote reply more clearly.

    Dear monk, why don't you use Javascript? This seems to be more suited for these kinds of tasks than a full-fledged CGI script.
    For Javascript help, look at the tutorials on w3schools.com.

    You could use a CGI script, but I advise against it. You would in that case probably use an array to hold the options and use CGI.pm to draw the page with listboxes. A button would then post a flag to the script, regenerating the page and showing the options in the other listbox. But again, Javascript would be easier for this.

    If you need any help, let me know.

    In the future though, you might want to give some more details about it, as to what you are trying to accomplish.

    Good luck,

    -- Detonite
    Thank($parent($_)) if(posts($parent($_)->Useful)
Re: To move values btwn listboxes
by blahblahblah (Priest) on Feb 19, 2005 at 14:55 UTC
Re: To move values btwn listboxes
by artist (Parson) on Feb 18, 2005 at 12:39 UTC
    When you 'submit' the listbox item, with help of CGI.pm, you can generate the new listbox with selected listbox items.