00719: Add (:input image:) markup for image buttons

Summary: Add (:input image:) markup for image buttons
Created: 2006-04-13 04:35
Status: Closed - exists
Category: Feature
Priority: 2
Version: 2.1.5
OS: Debian/Apache/PHP4.4.2

Description: Hi, i'd like to use <input type="image" ...> with src and alt attributes for an image-button. I've changed forms.php a bit and it worked without any problem until now. May be someone else finds it usefull. Here my changes to scripts/forms.php:

  1. $InputAttrs are the attributes we allow in output tags

SDV($InputAttrs, array('name', 'value', 'id', 'class', 'rows', 'cols',

  'size', 'maxlength', 'action', 'method', 'accesskey',
  'checked', 'disabled', 'readonly', 'enctype', 'src', 'alt'));
  1. Set up formatting for text, submit, hidden, radio, etc. types

foreach(array('text', 'submit', 'hidden', 'password', 'radio', 'checkbox',

              'reset', 'file', 'image') as $t)