Re: Data not fetching in the textfield.
| From: | Chris | Date: | Thu, 27 Sep 2007 00:50:14 +0000 |
| Subject: | Re: Data not fetching in the textfield. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44068@lists.php.net to get a copy of this message | ||
<snip>
echo("<input name=\"input1\" type=\"text\" value=$rows[0]>");Change to echo"<input name=\"input1\" type=\"text\" value=\"" . htmlspecialchars($rows[0], ENT_QUOTES) . "\">"; So html characters like > and < won't be interpreted by the browser. -- Postgresql & php tutorials http://www.designmagick.com/