Re: problem when submitting a string through a form



On Thu, 3 Jan 2008 10:00:22 -0800 (PST) Nikos <nikos1337@xxxxxxxxx> wrote:

N> The problem is that when the user selects something from my popup
N> menu(one string) and then submits it, the returned string being sent
N> back to my index.pl ain't matching this line: unless ( grep { $_ eq
N> param('select') } @display_files )

What is the exact content of param('select') at this point?
What is the exact content of @display_files?

Use Firefox+Firebug to see the exact data being posted back to the
server. What is the 'select' parameter's content? Show the entire POST
operation's data load.

As an aside, you may want to look into CGI::FormBuilder to build forms
easily (or the Template Toolkit, or Mason, or any other such toolkit)
and Rose::DB::Object to get your DB data.

Ted
.