Re: Problem with HTML Text box and PHP variable.

From: Date: Fri, 12 Sep 2003 03:15:55 +0000
Subject: Re: Problem with HTML Text box and PHP variable.
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-162377@lists.php.net to get a copy of this message
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote: > Jim Lucas wrote: > > >>><?php > >>> $dins="Dinesh"; > >>> echo "<input type=text name=dins class='textbox' > >>> value='$dins' >"; > >>>?> > >> > >>Use double quotes for HTML attributes. > > > > Why do you say that? > > Yeah, I figured someone would ask that. :) I couldn't find anything > definitive on w3c.org; can someone back me up? Sorta! Unfortunately not with a reference =/ > AFAIK, they are required in XML and XHTML. It's a good habit to get into > with regular HTML, also (although, yes, both will work in HTML). This is also my understanding. I could swear that I read it somewhere. I just don't remember where. - Brad

« previous php.general (#162377) next »