Jump to content

checkbox not submitting?


Recommended Posts

Hi there, i have created a small custom module with a form which works as expected, however 

i have tried creating a checkbox with this simple code, but this doesnt get submitted (i have tried using form method="get") and var_dump(Tools::getAllValues());

but the values isnt even in the URL when submitting.. if i change it to input type="text" it works fine...

i have no Javascript involved...

what am i missing?

 

<input type="checkbox" name="boxorder" id="boxorder" value="1" />

for the controller i use this

class bulkorderdisplayModuleFrontController extends ModuleFrontController
{
    
	
	 
    public function initContent()
    {
        parent::initContent();
		
		

		$add_cart = Tools::getValue('add_cart'); 
		$update_product = Tools::getValue('update_item'); 
		$update_product_qty = Tools::getValue('update_qty'); 
			
		$delete_item = Tools::getValue('delete_item');
		$searched_item = Tools::getValue('item');
		$item_qty = Tools::getValue('qty');
		$boxorder = Tools::getValue('boxorder');

 

Edited by diondp (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...