There is a customer controller in it action - add (Magento1)

How to switch to this action from a button in phtml ?

I do this:

 <form action="<?php Mage::getUrl('*/customer/add')?>"> <button class="add_product_button button" type="submit">add product</button> </form> 

The page is loaded but it remains as it was!

  • What about action? Complete the path with the name of the module, for example mycustome/customer/add - Naumov
  • @Naumov, pointed out) the same result - Maybe_V
  • The action code, can it render the same view, and show the resulting url too? - Naumov
  • one
    @Naumov, replaced action="<?php Mage::getUrl('*/customer/add')?>" action="<?php echo Mage::getUrl('*/customer/add')?>" and it worked) - Maybe_V
  • one
    I have fewer problems because of this, but about 5 percent, let me be a backend, so I don’t go into the templates too much, other people work there. - Naumov

0