Hi how can I set the name of the submit button when using the PHP Form Builder Class (http://www.imavex.com/php-form-builder-class/)
If by “name” you’re referring to the text that is displayed on the button, then use the first parameter of the addButton method.
$form->addButton(“My Button”);
If by “name” you’re referring to the “name” attribute on the input tag, then use the third parameter of the addButton method.
$form->addButton(“Submit”, “submit”, array(“name” => “mybutton”));