<?php echo showErrors('username', $errors); ?> </div> <div class = "<?php echo addErrorClass($errors, pass1); ?> "> <label for="pass1">password</label> <input type = "password" id='pass1' name = 'pass1' value=''/> <?php echo showErrors('pass1', $errors); ?> </div> <div class = "<?php echo addErrorClass($errors, 'pass2'); ?> "> <label for="pass2">password confirm</label> <input type = "password" id='pass2' name = 'pass2' value=''/> <?php echo showErrors('pass2', $errors); ?> </div> <?php echo criptPass($pass2, $errors); ?> <div> <input type = "submit" /> </div>
</div> <div class = "<?php echo addErrorClass($errors, 'operator'); ?> "> <label for="operator">operator</label> <select id="operator" name="operator"> <option value = "sum">+</option> <option value = "subtraction">-</option> <option value = "partition">/</option> <option value = "multiplication">*</option> </select> </div> <div class = "<?php echo addErrorClass($errors, 'number2'); ?> "> <label for="number2">nuber2</label> <input type = "text" id='number2' name = 'number2' /> <?php showErrors('number2', $errors); ?> </div> <div> <input type = "submit" /> </div> </form>
</div> <div class = "<?php echo addErrorClass($errors, 'month'); ?> "> <label for="month">Month</label> <input type = "number" id='month' name = 'month' value='<?php echo $month; ?> '/> <?php echo showErrors('month', $errors); ?> </div> <div class = "<?php echo addErrorClass($errors, 'year'); ?> "> <label for="year">Year</label> <input type = "number" id='year' name = 'year' value='<?php echo $year; ?> '/> <?php echo showErrors('year', $errors); ?> </div>