Re: quotes

From: Date: Wed, 25 Jun 2003 17:45:15 +0000
Subject: Re: quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152839@lists.php.net to get a copy of this message
--- "Lso ." <lukas__scott@hotmail.com> wrote: > ok i see why i didnt work but i dont know why. > > can anyone tell me why this works: > > <input name="testfield" type="text" value="<? echo > htmlentities($company) > ?>"> > > but this doesn't: > > echo "<input name='company' type='text' value='". > htmlentities($company) > ."'>"; It works for me, at least it does what I think you mean it to do. I'm not a big fan of single-quoted attributes in HTML, but it should be fine. What doesn't work for you? Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#152839) next »