Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Form: how to add an field?
  • Hello, I'm running into a little issue here. I need a button to submit my form. But it does not seem we can do that natively.
    I'm wanting to use the fieldset class and everything, not just the plain old \Form::input() or html_tag() helper.
    // This stuff
    $fieldset->add('name', 'label', array(
        'type' => 'button',
    ));
    

    When using type => submit then <input type="submit"> is used.
    When using type => button then <button type="button"> is used. I don't see how I can print <button type="submit"> I'm not sure wether the Core team planned to make the button a submit field or it was planned all along that the 'button' type from the fieldset / form feature use a type="button" which does nothing without additional javascript (or onclick attribute). There is this type => reset which prints a <button type="reset">. What should I do?
  • Same problem here, anyone with the solution?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion