#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    82
    Rep Power
    15

    HTML markup output in PHP


    Hi
    I am running a script to edit mysql data in php.
    However any output to textarea is blank while same output in input type=text is ok. I also have single quotes and some html code I need to output as raw text. How do I manage this?

    PHP Code:
    <textarea name='notes' rows='6' cols='20' VALUE="<?php echo $myrow['notes'?>"> </textarea>
    MySQL client version: 5.0.45
    johnno
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    618
    Rep Power
    16
    PHP Code:
    <textarea name='notes' rows='6' cols='20'><?php echo $myrow['notes'?></textarea>
    should work, textarea doesn't use value

    Comments on this post

    • IkoTikashi agrees
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    82
    Rep Power
    15
    Thanks..was simple.
    johnno

IMN logo majestic logo threadwatch logo seochat tools logo