PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Yet this does not work. If I simply echo the article piece (outside the textarea) then the article appears and if I remove the textarea from within the PHP and insert the word 'duckling' instead of the variable then that works, but I cannot seem to be able to pre-populate using the variable.
<textarea name="thearticle" id="thearticle"><?php echo $row['thearticle']?></textarea>
I prefer the short <?=$row['thearticle']?> But I am not sure is this is going to be depricated
<textarea name="thearticle" id="thearticle"><?php echo $row['thearticle']?></textarea>
I prefer the short <?=$row['thearticle']?> But I am not sure is this is going to be depricated
Sorry about the additional ?>; wasn't in the code but only in my posting.
I did actually try your suggestion previously and got the same result; nothing.
As I say, the interesting thing is that if I post the line <?php echo $row['thearticle'] ?> anywhere outside the form then the contents appear; but not inside the textarea.