Naveed
Naveed

Reputation: 33

get zend form fileupload values to another input field

<?php echo $this->form->getElement("logo");  ?>
<div id="BrowserVisible">
<input type="text" id="halal" />
<input type="button" value="Upload" id="button" />
</div>

(form->getElement("logo"); ?>)field is genrated by zend form, when i select the image file from PC, the upload file path or file name is show in input field, that also copy in (<input type="text" id="halal" />), how can i do that.

Tahnks in advanced

Upvotes: 0

Views: 136

Answers (1)

Remi Thomas
Remi Thomas

Reputation: 1528

Try to change your code with this :

<?php echo $this->form->get("logo");  ?>

Upvotes: 1

Related Questions