need help with "new Input"
Posted: Tue Aug 13, 2024 12:22 pm
Hello all
old : tep_draw_input_field('name', $XXXX, 'required aria-required="true" id="inputFromName" placeholder="' . ENTRY_NAME_TEXT . '"');
new: (new Input('name', [ 'id' => 'inputFromName', 'placeholder' => ENTRY_NAME_TEXT]))->require(), FORM_REQUIRED_INPUT;
how is the $XXXX to add into the new form to get same result ?
thanks in advance
Ralph
old : tep_draw_input_field('name', $XXXX, 'required aria-required="true" id="inputFromName" placeholder="' . ENTRY_NAME_TEXT . '"');
new: (new Input('name', [ 'id' => 'inputFromName', 'placeholder' => ENTRY_NAME_TEXT]))->require(), FORM_REQUIRED_INPUT;
how is the $XXXX to add into the new form to get same result ?
thanks in advance
Ralph