Re: Data not fetching in the textfield.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




<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/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux