Re: A rather strange problem.

From: Date: Thu, 23 Jan 2003 12:57:18 +0000
Subject: Re: A rather strange problem.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132813@lists.php.net to get a copy of this message
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


« previous php.general (#132813) next »