RE: [PHP] Problem with HTML Text box and PHP variable.

From: Date: Fri, 12 Sep 2003 10:49:43 +0000
Subject: RE: [PHP] Problem with HTML Text box and PHP variable.
Groups: php.general 
Request: Send a blank email to php-general+get-162404@lists.php.net to get a copy of this message
On 11 September 2003 19:56, CPT John W. Holmes wrote: > From: "murugesan" <mukeshgct@hotpop.com> > > > > This will help you > > > > <?php > > $dins="Dinesh"; > > echo "<input type=text name=dins class='textbox' > > value='$dins' >"; > > > > > Use double quotes for HTML attributes. Why? Both the HTML 4.01 and XHTML 1.0 (via XML 1.0) specifications explicitly allow both single and double quotes for attribute values. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#162404) next »