Don't open and close the form manually if you're going to use
FormHelper to create inputs.

echo $this->Form->create(...);
...
echo $this->Form->end(...);

On Mon, Feb 7, 2011 at 1:58 PM, mr.paul.wheatley
<mr.paul.wheat...@me.com> wrote:
> Yup, of course you will need that, sorry.  Here it is...
>
> <div class="courses form">
> <form action="<?php echo $html->url('/courses/add'); ?>" method="post"
> enctype="multipart/form-data">
>     <fieldset>
>          <legend><?php __('Course Information');?></legend>
>     <table>
>         <TR>
>             <TD width="50%">Course Title</td>
>             <TD>Address 1</td>
>         </tr>
>         <TR>
>             <TD><?php echo $form->input('name', array('type' => 'text',
> 'label' => false)); ?></td>
>             <TD><?php echo $form->input('address', array('type' => 'text',
> 'label' => false)); ?></td>
>         </tr>
>         <TR>
>             <TD>Telephone Number</td>
>             <TD>Address 2</td>
>         </tr>
>         <TR>
>             <TD><?php echo $form->input('telephone', array('type' => 'text',
> 'label' => false)); ?></td>
>             <TD><?php echo $form->input('address2', array('type' => 'text',
> 'label' => false)); ?></td>
>         </tr>
>         <TR>
>             <TD>Website</td>
>             <TD>Area</td>
>         </tr>
>         <TR>
>             <TD><?php echo $form->input('url', array('type' => 'text',
> 'label' => false)); ?></td>
>             <TD><?php echo $form->input('area', array('type' => 'text',
> 'label' => false)); ?></td>
>         </tr>
>         <TR>
>             <TD>Email Address</td>
>             <TD>Postcode</td>
>         </tr>
>         <TR>
>             <TD><?php echo $form->input('email', array('type' => 'text',
> 'label' => false)); ?></td>
>             <TD><?php echo $form->input('postcode', array('type' => 'text',
> 'label' => false)); ?></td>
>         </tr>
>         <TR>
>             <TD colspan="2">Course Logo</td>
>         </tr>
>         <TR>
>             <TD colspan="2"><input type="file" name="data[File][image]"
> id="FileImage" /> </td>
>
>         </tr>
>     </table>
>     </fieldset>
>     <fieldset>
>          <legend><?php __('A little more detail');?></legend>
>      <table>
>          <TR><TD>Introduction text (this will for the introduction for your
> sites page)</td></tr>
>         <TR><TD><?php echo $form->input('introduction', array('label' =>
> false)); ?></td></tr>
>         <TR><TD>Description of your course</td></tr>
>         <TR><TD><?php echo $form->input('description', array('label' =>
> false)); ?></td></tr>
>         <TR><TD>Descrption of your cources features</td></tr>
>         <TR><TD><?php echo $form->input('features', array('label' =>
> false)); ?></td></tr>
>         <TR><TD>List all fees for your course, e.g. green fees, tuition,
> caddy hire, etc...</td></tr>
>         <TR><TD><?php echo $form->input('fees', array('label' => false));
> ?></td></tr>
>         <TR><TD>Opening times</td></tr>
>         <TR><TD><?php echo $form->input('opening', array('label' => false));
> ?></td></tr>
>     </table>
>     </fieldset>
>     <fieldset>
>          <legend><?php __('Features of your course');?></legend>
>     <table>
>         <TR>
>             <td>Entry Options</td>
>             <TD><?php echo $form->input('member_id', array('label' =>
> false)); ?></td>
>         </tr>
>         <TR>
>             <td>Dress Code</td>
>             <TD><?php echo $form->input('outfit_id', array('label' =>
> false)); ?></td>
>         </tr>
>         <TR>
>             <td>What type of course is it?</td>
>             <TD><?php echo $form->input('type_id', array('label' => false));
> ?></td>
>         </tr>
>         <TR>
>             <td>Course rating</td>
>             <TD><?php echo $form->input('rating_id', array('label' =>
> false)); ?></td>
>         </tr>
>     </table>
> </fieldset>
>     <fieldset>
>          <legend><?php __('Current deals');?></legend>
>     <table>
>         <TR>
>             <TD><?php echo $form->input('Deal', array('type' => 'select',
> 'multiple' => 'checkbox', 'label' => false)); ?></td>
>         </tr>
>     </table>
>     </fieldset>
>     <fieldset>
>          <legend><?php __('Cource facilities');?></legend>
>     <table>
>         <TR>
>             <TD><?php echo $form->input('Facility', array('type' =>
> 'select', 'multiple' => 'checkbox', 'label' => false)); ?></td>
>         </tr>
>     </table>
>     </fieldset>
>
> <?php echo $form->input('user_id', array('type' => 'hidden')); ?>
> <?php echo $form->end('Add course');?>
> </div>
>
> Paul
>
> On 07 Feb, 2011,at 02:57 PM, kdubya <kenwin...@winanstech.com> wrote:
>
> Show us your view code that builds the form.
>
> Ken
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to