Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:12:09+00:00 2026-05-29T15:12:09+00:00

Trying to Catalyse some prototype pages with form fields. My Catalyst controller does not

  • 0

Trying to Catalyse some prototype pages with form fields. My Catalyst controller does not seem to be getting the inputs from the form when it is submitted.

I have tried to reduce the template & controller down as far as I can and I am still getting this problem.

template is simply:

<body>
    <form action="/minimal-testing" method="get">
          <select id="select02">
            <option value="cat1">cat1</option>
            <option value="cat2">cat2</option>
          </select>
          <select id="select06">
            <option value="1">1</option>
            <option value="2">2</option>
          </select>
        <input type="submit" value="submit" title="submit" />
    </form>
    <p> Hello, params says: </p>
    <p>
      [% FOR param IN params ; param.key ; ' = ' ; param.value; END %]
    </p>
</body>

Controller is:

sub minimal_testing :Path('minimal-testing') :Args(0) {
    use Data::Dumper;
    my ( $self, $c ) = @_;
    $c->stash(params=>$c->req->params);
    $c->stash(template => "dynamic/minimal-testing.tt");
    $c->log->debug(Dumper($c->request->params));
}

When I browse to the form, pick from the select options, and submit, my debug log simply says

[debug] $VAR1 = {};

Obviously I am missing something so obvious I am just not seeing it… please enlighten me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:12:09+00:00Added an answer on May 29, 2026 at 3:12 pm

    You’re dead right. I suspect your Catalyst log should be giving you a clue what’s going wrong here. The problem isn’t with Catalyst.

    Basically, it’s malformed HTML – your form inputs each need a name parameter that can be passed back to the server in the POST.

          <select id="select02" name="select02">
            <option value="cat1">cat1</option>
            <option value="cat2">cat2</option>
          </select>
    

    id is for CSS, name is for FORM processing.

    Try that, and you should get logging like:

    [11:31:28.499 16014:debug] Body Parameters are:
    
    .-------------------+----------------------------------------.
    | Parameter         | Value                                  |
    +-------------------+----------------------------------------+
    | select02          | cat1                                   |
    | select06          | 2                                      |
    '-------------------+----------------------------------------'
    

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out a way where I can pass some data/fields from a
I am trying to use Class::DBI with Catalyst::Plugin::Authentication::Store::DBIC. The example given on CPAN does
we want to build a site HABJ (*) starting from some HTML 'demo' pages
I'm trying to use the example view in CPAN for Catalyst::Controller::FormBuilder, which looks like
Trying to execute a Powershell cmdlet from a MVC 3 Controller using impersonation but
I know that Flash Catalyst is still in Beta, but I'm trying to look
Trying to setup an SSH server on Windows Server 2003. What are some good
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
I am trying to deploy my little Catalyst web app using Plack/Starman. All the
Trying to check if a name is already stored in the database from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.