import('form.FormElement');
class Submit extends FormElement {
- var $class = 'Submit';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name)
+ {
+ $this->class = 'Submit';
+ $this->name = $name;
+ }
- function getHtml() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;