mmichals Posted March 16, 2016 Share Posted March 16, 2016 Hi Larry, I'm just wondering what is the syntax that needs to be used when adding additional options at the end of a create_form_input() form input? For example, I want to create a textarea with 5 rows by default. So how do I add rows="5" to the textarea html? <?php create_form_input('info', 'textarea', 'Provide info:', 'placeholder', $errors, ?optionsArray? ); ?> where function create_form_input($name, $type, $label='', $placeholder='', $errors = array(), $options = array()) Michal Link to comment Share on other sites More sharing options...
Larry Posted March 22, 2016 Share Posted March 22, 2016 All you should need to do is pass ["rows" => "5"] as the last argument. Have you tried that? Link to comment Share on other sites More sharing options...
mmichals Posted March 26, 2016 Author Share Posted March 26, 2016 Hi Larry, Yes, I saw that later in the book. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts