petera3 Posted August 31, 2007 Share Posted August 31, 2007 I am a php n00b and I can't seem to refill a textarea. I can refill all my other form items. Any suggestions? I have tried ---------------------------------- Opcode long description (prints on the job cards) :<br><textarea wrap='soft' maxlength='410' rows='8' cols='50' type='text' name='Opcode_long_desc' value= <?php if ($refill==1){ echo $_POST['Opcode_long_desc'];}else echo ""; ?> ></textarea><br> ---------------------------------- ***I have also tried*** ---------------------------------- Opcode long description (prints on the job cards) :<br><textarea wrap='soft' maxlength='410' rows='8' cols='50' type='text' name='Opcode_long_desc' value="<?php if (isset($_POST['Opcode_long_desc'])) echo $_POST['Opcode_long_desc']; ?> ></textarea><br> ---------------------------------- Thanks, ~Petera3 Link to comment https://forums.phpfreaks.com/topic/67487-how-to-refill-a-textarea/ Share on other sites More sharing options...
Ken2k7 Posted August 31, 2007 Share Posted August 31, 2007 What do you mean refill? Link to comment https://forums.phpfreaks.com/topic/67487-how-to-refill-a-textarea/#findComment-338805 Share on other sites More sharing options...
petera3 Posted August 31, 2007 Author Share Posted August 31, 2007 I mean I am trying to refill a form if validation fails ~Petera3 Link to comment https://forums.phpfreaks.com/topic/67487-how-to-refill-a-textarea/#findComment-338806 Share on other sites More sharing options...
nathanmaxsonadil Posted August 31, 2007 Share Posted August 31, 2007 try <textarea wrap='soft' maxlength='410' rows='8' cols='50' type='text' name='Opcode_long_desc' ><?php if (isset($_POST['Opcode_long_desc'])) echo $_POST['Opcode_long_desc']; ?> </textarea> Link to comment https://forums.phpfreaks.com/topic/67487-how-to-refill-a-textarea/#findComment-338812 Share on other sites More sharing options...
petera3 Posted August 31, 2007 Author Share Posted August 31, 2007 that works great!!!! here is my working refill code. Thank you. ------------------------- <textarea wrap='soft' maxlength='256' rows='3' cols='50' type='text' name='ManComments'><?php if (isset($_POST['ManComments']))echo $_POST['ManComments'];?></textarea><br> ------------------------- [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/67487-how-to-refill-a-textarea/#findComment-338848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.