Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

CI 3 formv alidation error

$
0
0

.png   code3.png (Size: 75.66 KB / Downloads: 17)
.png   code3.png (Size: 75.66 KB / Downloads: 17)
.png   code2.png (Size: 119.34 KB / Downloads: 6)
.png   code.png (Size: 110.36 KB / Downloads: 5)
Hello The following script in red is causing a validation error with the form, is there an alternative way for writing this line of code. for some resason i am getting error Item Title is required and all the variable names a re correct i just cant understand.
<div class="control-group">
 <label class="control-label" for="item_title">Item Title </label>
 <div class="controls">
<input type="text" class="span6" id="item_title"  value ="<?php  $item_title; ?>">
the script below is on the same form and it works fine saves to the data base when the above script the view is disabled can someone help me.
<div class="control-group hidden-phone">

 <label class="control-label" for="textarea2">Textarea WYSIWYG</label>
 <div class="controls">
<textarea class="cleditor" id="textarea2" rows="3" name ="item_discription"><?php echo $item_discription;?></textarea>
 </div>
</div>

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>