Re: Hi! A simple adn double matter in forms

From: Date: Fri, 08 Sep 2000 12:18:07 +0000
Subject: Re: Hi! A simple adn double matter in forms
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32651@lists.php.net to get a copy of this message
Joan Fuste <j.fuste@xms.es> wrote: > object is read only. I want to put the MySQL row data to form object > "directly". When the HTML is generated, I came with this: > > <INPUT TYPE="TEXT" VALUE="This is a "quoted" text with > 'simply > quotes' also."> Call htmlspecialchars() on the output, i.e.: <input type="text" name="foo" value="<? echo htmlspecialchars($foo) ?>"> This will turn the '"' characters into '&quot;' entities, which will solve your problem.

« previous php.dev (#32651) next »