src/HtmlGenerator.php
/**
     * Generates an input field row with a label beside it (making placeholder usage pointless).
     * This is useful for when you are displaying input fields with existing values. When this is 
     * the case, placeholders would not be visible, thus useless, but the user still needs to know 
     * what the fields represent.
     * 
     * @param name  - the name of the fild (name we use to get value from GET / POST)
     * @param type  - text, password, submit
     * @param label - the human readable name to display next to the input field.
     * @param value - the current value of the input field.
     * 
     * @return string - the generated html
     */
Generates an input field row with a label beside it (making placeholder usage pointless).
This is useful for when you are displaying input fields with existing values. When this is
the case, placeholders would not be visible, thus useless, but the user still needs to know
what the fields represent.

@param name  - the name of the fild (name we use to get value from GET / POST)
@param type  - text, password, submit
@param label - the human readable name to display next to the input field.
@param value - the current value of the input field.

@return string - the generated html
Generates an input field row with a label beside it ( making placeholder usage pointless ) . This is useful for when you are displaying input fields with existing values . When this is the case placeholders would not be visible thus useless but the user still needs to know what the fields represent . @param name - the name of the fild ( name we use to get value from GET / POST ) @param type - text password submit @param label - the human readable name to display next to the input field . @param value - the current value of the input field . @return string - the generated html
public static function generateInputFieldRow($name, $type, $label, $value="")
    {
        $html =
            "<div class ='row'>" .
                "<div class='label'>" . $label . "</div>" .
                "<div class='inputs'>" .
                    self::generateInputField($name, $type, $value) .
                "</div>" .
            "</div>";
        return $html;
    }
public static function generateInputFieldRow ( $ name , $ type , $ label , $ value = " " ) { $ html = " <div class ='row'> " . " <div class='label'> " . $ label . " </div> " . " <div class='inputs'> " . self :: generateInputField ( $ name , $ type , $ value ) . " </div> " . " </div> " ; return $ html ; }
Generates an input field row with a label beside it (making placeholder usage pointless).
Generates an input field row with a label beside it ( making placeholder usage pointless ) .