And also use htmlspecialchars()

print ' <input name="OrgName" type="text" id="OrgName" size="30" value="'.htmlspecialchars($row['OrgName']).'">';



Jon Haworth wrote:

Hi Denis,


if the field is "Jane Enterprises", the textbox shows only "jane".
At the moment, if you view the HTML, you'll see:

<input value=Jane Enterprises>

Your browser sees this as an input with a value of "jane" and an attribute
called "enterprises", which it doesn't recognise (and therefore ignores
completely).

What you need to do is stick quotes round this, so it'll become:

<input value="Jane Enterprises">


HTH
Jon




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

Reply via email to