Jump to content

Edit History

diondp

diondp

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');

 

diondp

diondp

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" />

 

×
×
  • Create New...