[eluser]ingrimm[/eluser]
Hi guys,
i've just started using CI, so please bear with me if i get some basics wrong :-)
i have a view with a form and a few input fields and one textarea in it. on postback i get the values for the input fields but not for the textarea... what am i doing wrong:
PHP View:
Code:
<?php $attributes = array('class' => 'validate', 'id' => 'sendmail'); ?>
<?=form_open('members/request', $attributes)?>
<p>Name:</p><input type="text" name="nachname">
<p>Vorname:</p><input type="text" name="vorname">
<p>Telefonnummer:</p><input type="text" name="telefon" id="telefon">
<p>Email Adresse:</p><input type="text" name="email" id ="email">
<?php $textarea_data = array('id' => 'description',
'name' => 'description',
'rows' => 5,
'cols' => 50);?>
<p>Anliegen:</p><?=form_textarea($textarea_data); ?>
<br/>
<button type="submit" class="save" ></button>
</div><!-- End employee-add-->
</form>
HTML Output:
Code:
<form name="request" id="sendmail" class="validate" method="post" action="http://localhost/test/members/request">
<p>Name:</p><input type="text" name="nachname" class="valid">
<p>Vorname:</p><input type="text" name="vorname" class="valid">
<p>Telefonnummer:</p><input type="text" id="telefon" name="telefon" class="valid">
<p>Email Adresse:</p><input type="text" id="email" name="email" class="valid">
<p>Anliegen:</p><textarea id="description" rows="5" cols="50" name="description" class="valid"></textarea>
<br>
<button class="save" type="submit"></button>
</form>
and this is the firebug output:
Parameter application/x-www-form-urlencoded
email klmlkm
nachname lklkm
telefon lkmlkm
vorname lkmlkm
Source
nachname=lklkm&vorname=lkmlkm&telefon=lkmlkm&email=klmlkm
the post entry for the textarea is completely missing...
any ideas ?
thanks in advance
Michael