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 8187393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:32:57+00:00 2026-06-07T02:32:57+00:00

I assume it’s the Security Component that’s creating a duplicate of my input: <?php

  • 0

I assume it’s the Security Component that’s creating a duplicate of my input:

<?php echo $this->Form->input('39', array('type'=>'checkbox')); ?>

Becomes:

<input type="hidden" name="39" id="Form39_" value="0"/>
<input type="checkbox" name="39"  value="1" id="Form39"/>

Maybe this works fine in most scenarios? (Cake ignores it?)

But my form is of GET method, so when I submit, I get this:

...&39=0&39=1...  in the URL

Or, if I don’t check the box, I get this:

...&39=0  (shouldn't even be there)

How can I it to either a) not create a duplicate or b) don’t submit both during GET submits?

  • 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-06-07T02:32:58+00:00Added an answer on June 7, 2026 at 2:32 am

    This should help:

    <?php
    echo $this->Form->checkbox('39', array('hiddenField' => false));
    ?>
    

    Form Helper

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

Sidebar

Related Questions

Assume the following is a 2d array that we are operating on a b
Assume I have the following: <input type=text> <div id=listofstuff> <div class=anitem> <span class=item name>Dog</span>
Assume I have an array $arr. It's possible that it has an element with
Assume that i have two variables in php: $year $month Then I want to
Assume I have two tables, Student Test Id Name TestId Type StudentId -- ----
Assume this code works: left '*' left '+' expr: expr '+' expr | expr
Assume that we have two sets: A=(a_1,a_2,...,a_m) and B=(b_1,b_2,...,a_n) (Not necessarily of same size).
Assume I have a set of numbers like 1,2,3,4,5,6,7 input as a single String
Assume the following xml input... <incidents> <incident> <year>2011</year> <other data here> </incident> <incident> <year>2009</year>
Assume following component tree: A B C A has a private field (called filter)

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.