[eluser]krishnakumar2k[/eluser]
[quote author="InsiteFX" date="1299695959"]Did you create a form to get the input?
If so show your form code and controller code.
InsiteFX[/quote]
Code:
controller code
$data1['content'] = $this->input->post('content');
$this->service_model->insertContent($data1);
form
<form name="kkdh" action="<?php echo site_url("login/editor_add"); ?>" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" style="margin-bottom:25px;">
<tr style="color:#FFFFFF;">
<input type="hidden" value="<?php echo base_url();?>" id="url" />
<td width="10%" rowspan="2"><img src="<?php echo base_url();?>images/manage_plans.jpg" width="56" /></td>
<td height="11" colspan="5" style="background-color:#84BCED;"> <span class="bigwhitetext"> Editor</span> </td>
</tr>
<tr style="color:#FFFFFF;">
<td width="11%"> </td>
<td height="11" colspan="2" ></td>
</tr>
<?php if($error !=""){ ?>
<tr >
<td width="10%" > </td>
<td width="11%"> </td>
<td width="71%" >
<div style="background-color:#990000;color:#FFFFFF;border:1px solid #FF0000;font-weight:bold;"><?php echo $error; ?></div>
</td>
<td width="0%" > </td>
<td width="8%" height="11" colspan="2" ></td>
</tr>
<?php } ?>
<tr >
<td width="10%" > </td>
<td width="11%"> </td>
<td width="71%" >
<table width="568">
<tr>
<td width="192" class="greytext_contact">Menu Title</td>
<td width="364"><input type="text"></td>
</tr>
<tr>
<td class="greytext_contact">Enable Menu</td>
<td><input type="checkbox" name="status" <?php if($content['status']== 1){echo 'checked="checked"';} ?> value="1" /></td>
</tr>
<tr>
<td valign="top" class="greytext_contact">HTML Content</td>
<td><textarea name="content" id="kk1" rows="15" cols="55" ></textarea></td>
</tr>
<tr>
<td></td><td><input type="submit" value="Submit" /></td>
</tr>
</table>
</td>
<td width="0%" > </td>
<td width="8%" height="11" colspan="2" ></td>
</tr>
</table>
</form>