On this page

View Helpers


The FormSubmit view helper can be used to render an <input type="submit"> HTML form input. It is meant to work with the Submit element.

Basic usage

use Laminas\Form\Element;

$element = new Element\Submit('my-submit');

// Within your view...
echo $this->formSubmit($element);


<input type="submit" name="my-submit" value="">

Found a mistake or want to contribute to the documentation? Edit this page on GitHub!