Part of the EllisLab Network
   
 
Problem with re-populating SELECT and TEXTAREA fields
Posted: 04 July 2009 01:32 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  06-25-2009

Hi,

The re-poplulating of the select and textarea fields doesn’t work, i did what the documentation say though!

My code :

<tr> <td>Description</td><td><textarea name="description" cols="30" rows="10" value="<?php echo set_value('description'); ?>"></textarea></td></tr>

<
tr> <td>Catégorie</td><td><select  name="categorie">
      <
option value="Agriculture" <?php echo set_select('categorie''Agriculture');?>>Agriculture</option>
      <
option value="Babysitting" <?php echo set_select('categorie''Babysitting');?>>Babysitting</option>
      <
option value="Education" <?php echo set_select('categorie''Education');?>>Éducation</option>
    </
select>
    </
td></tr

Do you see the error ?

Thx!


...

Profile
 
 
Posted: 04 July 2009 02:01 PM   [ Ignore ]   [ # 1 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Textareas don’t have a value property. You put the value in between the opening and closing tags

<textarea><?set_value($text?></textarea
 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 04 July 2009 02:27 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  06-25-2009

Oops, yes you’re right. Any idea for the select field ?


...

Profile
 
 
Posted: 04 July 2009 02:58 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  13
Joined  06-25-2009

Forget it, i solved the problem smile thx!


...

Profile
 
 
Posted: 28 July 2009 08:51 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  3
Joined  07-24-2009

Thanks Colin!

Profile
 
 
   
 
 
‹‹ One page view      All Post Data ››