edoplaza Posted November 5, 2009 Report Share Posted November 5, 2009 (edited) I am trying to insert some values into the different fields of an update form: > </pre> <table>Titulo: Fecha: Lugar: Hora: Comentarios: </table> <br><br><br The only one I have problems with is the text area. It doesn't work. Where should I put the "value"? Thanks Eduardo Edited November 5, 2009 by edoplaza Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted November 5, 2009 Report Share Posted November 5, 2009 Where are you getting the values from? a database look-up? or a form submission? an array of values? Are the values defined in your code before you use them in this snippet? When the client first uses the form, before the submission, are there default values set? You should be using an 'if' statement to confirm the value isset() before attempting to echo them. The 'if' can be where you have the php snippet now. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 5, 2009 Report Share Posted November 5, 2009 I don't believe the textarea has a "value" like the other inputs do, so this won't work: You can, however, echo out your data between the opening and closing textarea tags: <?php echo $variable; ?> Quote Link to comment Share on other sites More sharing options...
edoplaza Posted November 5, 2009 Author Report Share Posted November 5, 2009 It didn't work with "echo...". But it works with "print...": <?php print $comentarios; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.