Change: replace inputs of type submit with button elements

Attributes 'type="submit"' got removed because it's the default type.
Therefore the attribute can be omitted.
This commit is contained in:
Heiko August 2020-04-27 11:23:48 +02:00
parent b13bfd52bb
commit f9d6025a75
9 changed files with 10 additions and 10 deletions

View file

@ -63,7 +63,7 @@
<input id="class" type="text" size="20"></p>
<p><?php echo $l['admin']['pic_alt'] ?><br />
<input id="alt" type="text" size="20"></p>
<p><input type="submit" value="<?php echo $l['admin']['pic_insert'] ?>"></p>
<p><button value="<?php echo $l['admin']['pic_insert'] ?>"><?php echo htmlspecialchars($l['admin']['pic_insert']) ?></button></p>
</form>
<?php
}
@ -79,7 +79,7 @@ if (empty($_FILES['probe']) or isset($errors))
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size ?>">
<?php echo add_session_id_input_tag() ?>
<input type="file" name="probe" /><br><br>
<input type="submit" value="<?php echo $l['admin']['pic_upload'] ?>">
<button value="<?php echo $l['admin']['pic_upload'] ?>"><?php echo htmlspecialchars($l['admin']['pic_upload']) ?></button>
</form>
<?php
}