Check this. with little bit of updates it will work for you.
<?php
echo $this->Form->create('Model', array('method'=>'get', 'class'=>'cmxform', 'id'=>'commentForm'));
echo '<table border="0" width="380">';
$rows = array();
$rows[] = array(
$this->form->label('Email:'),
$this->form->input('cemail', array('id' =>'cemail', 'type' => 'email', 'name' => 'email', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Phone:'),
$this->form->input('phone', array('id' =>'', 'type' => 'text', 'name' => 'phone', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Subject:'),
$this->form->input('subject', array('id' =>'', 'type' => 'text', 'name' => 'subject', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Message:'),
$this->form->input('comment', array('id' =>'', 'type' => 'textarea', 'name' => 'comment', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label(' '),
$this->Form->submit("SEND")
);
echo $this->Html->tableCells($rows);
echo '</table>';
echo $this->Form->end();
?>
<?php
echo $this->Form->create('Model', array('method'=>'get', 'class'=>'cmxform', 'id'=>'commentForm'));
echo '<table border="0" width="380">';
$rows = array();
$rows[] = array(
$this->form->label('Email:'),
$this->form->input('cemail', array('id' =>'cemail', 'type' => 'email', 'name' => 'email', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Phone:'),
$this->form->input('phone', array('id' =>'', 'type' => 'text', 'name' => 'phone', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Subject:'),
$this->form->input('subject', array('id' =>'', 'type' => 'text', 'name' => 'subject', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label('Message:'),
$this->form->input('comment', array('id' =>'', 'type' => 'textarea', 'name' => 'comment', 'style' => 'color:#999; width:100%; height:20px;'))
);
$rows[] = array(
$this->form->label(' '),
$this->Form->submit("SEND")
);
echo $this->Html->tableCells($rows);
echo '</table>';
echo $this->Form->end();
?>
On Tue, Jun 11, 2013 at 6:45 AM, mao aronraingsey <aronraingsey.mao@gmail.com> wrote:
<form class="cmxform" id="commentForm" method="get" action="">
<table border="0" width="380">
<tr height="30">
<td width="70" valign="top"><label for="cname" style="">Name:</label></td>
<td><input id="cname" name="name" type="text" required style="height:20px; color:#999; width:100%;" />
</td>
</tr>
<tr height="30">
<td width="70" valign="top"><label for="cemail" style="">Email:</label></td>
<td><input id="cemail" type="email" name="email" required style="color:#999; width:100%; height:20px;" /></td>
</tr>
<tr height="30">
<td width="70" valign="top"><label for="" style="">Phone:</label></td>
<td><input id="" name="phone" type="text" required style="height:20px; color:#999; width:100%;" /></td>
</tr>
<tr height="30">
<td width="70" valign="top"><label for="" style="">Subject:</label></td>
<td><input id="" name="subject" type="text" required style="height:20px; color:#999; width:100%;" /></td>
</tr>
<tr height="100">
<td width="70" valign="top"><label for="ccomment" style="">Message:</label></td>
<td><textarea id="ccomment" name="comment" required style="color:#999; width:100%; height:80px; margin-bottom:10px;" ></textarea></td>
</tr>
<tr>
<td width="70" valign="top"></td>
<td align="right" valign="top"><input class="submit" type="submit" value="SEND" id="bigbutton" style="background:#666; border:0; padding:5px 10px; cursor:pointer; color:#fff;"/> </td>
</tr>
</table>
</form>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment