diff --git a/spoon/form/date.php b/spoon/form/date.php index 341059a..f30806d 100644 --- a/spoon/form/date.php +++ b/spoon/form/date.php @@ -377,7 +377,7 @@ public function parse($template = null) if($this->attributes['name'] == '') throw new SpoonFormException('A name is required for a date field. Please provide a valid name.'); // start html generation - $output = 'getValue()) . '"'; // add attributes $output .= $this->getAttributesHTML(array('[id]' => $this->attributes['id'], '[name]' => $this->attributes['name'], '[value]' => $this->getValue())) . ' />'; diff --git a/spoon/form/hidden.php b/spoon/form/hidden.php index 9f1a6fc..d92ea79 100644 --- a/spoon/form/hidden.php +++ b/spoon/form/hidden.php @@ -109,7 +109,7 @@ public function isFilled() public function parse($template = null) { // start html generation - $output = 'getValue()) . '"'; // build attributes $attributes = array(); diff --git a/spoon/form/password.php b/spoon/form/password.php index edd30d3..5663a0d 100644 --- a/spoon/form/password.php +++ b/spoon/form/password.php @@ -273,7 +273,7 @@ public function parse($template = null) if($this->attributes['name'] == '') throw new SpoonFormException('A name is required for a password field. Please provide a name.'); // start html generation - $output = ''), array('"', '<', '>'), $this->getValue()) . '"'; + $output = 'getAttributesHTML(array('[id]' => $this->attributes['id'], '[name]' => $this->attributes['name'], '[value]' => $this->getValue())) . ' />'; diff --git a/spoon/form/text.php b/spoon/form/text.php index 7015a7d..6f1067f 100644 --- a/spoon/form/text.php +++ b/spoon/form/text.php @@ -788,7 +788,7 @@ public function parse($template = null) if($this->attributes['name'] == '') throw new SpoonFormException('A name is required for a textfield. Please provide a name.'); // start html generation - $output = ''), array('"', '<', '>'), $this->getValue()) . '"'; + $output = 'getAttributesHTML(array('[id]' => $this->attributes['id'], '[name]' => $this->attributes['name'], '[value]' => $this->getValue())) . ' />'; diff --git a/spoon/form/time.php b/spoon/form/time.php index d1ed082..9e83f3e 100644 --- a/spoon/form/time.php +++ b/spoon/form/time.php @@ -216,7 +216,7 @@ public function parse($template = null) if($this->attributes['name'] == '') throw new SpoonFormException('A name is required for a time field. Please provide a name.'); // start html generation - $output = 'getValue()) . '"'; // add attributes $output .= $this->getAttributesHTML(array('[id]' => $this->attributes['id'], '[name]' => $this->attributes['name'], '[value]' => $this->getValue())) . ' />';