The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
problem CakePHP and Jquery Dynamic Form
Posted by: Fons Vandamme | March 27, 2011 @ 8:25am
PHP Code
[
Download
]
<script> $(document).ready(function(){ $("#phone").dynamicForm("#plus", "#minus"); }); </script> <div class="photos form"> <?php echo $this->Form->create('Photo', array('type' => 'file', 'id' => 'form_add'));?> <fieldset> <legend><?php __('Admin Add Photo'); ?></legend> <?php echo $this->Form->input('album_id'); ?> <?php echo $this->Form->input('picture', array('type' => 'file', 'id' => 'pic'));?> <p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p> <input id="phone" type="text" name="phone" size="30"> <p><span><a id="minus" href="">[-]</a> <a id="plus" href="">[+]</a></span></p> <?php echo $this->Form->input('dir', array('type' => 'hidden')); echo $this->Form->input('mimetype', array('type' => 'hidden')); echo $this->Form->input('filesize', array('type' => 'hidden')); ?> </fieldset> <?php echo $this->Form->end(__('Submit', true));?> </div>
Syntax Highlighting
[
Open in new window
]
Author Comments
Not working :(
Rating
4.02 / 8
102 Votes
http://codebin.yi.org/1183
page generated in 0.00 seconds