Re: Re: Anyone Up?

From: Date: Fri, 01 Feb 2002 09:38:49 +0000
Subject: Re: Re: Anyone Up?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-83091@lists.php.net to get a copy of this message
On Fri, 2002-02-01 at 01:20, hugh danaher wrote: > Not familiar with anything but php and html. I know that in a type=text > (obviously not a checkbox) if you don't use the escape backslashes, the > value written into the box is 'Your' without the 'Name #' I am told this > is > because the browser views the space after 'r' in 'Your' as a break and is > looking at Name # as the next instruction, which it isn't. My two cents for > the evening. > Hugh A few notes: o Single or double quotes will work fine; either are valid (so long as they match). o <input type="text" value=this is a joke> will give a value of 'this' and is bad style--*always* quote your attributes :), o <input type="text" value="this is a joke"> will give a value of "this is a joke". You needed to escape the backslashes so that the double quotes inside a double-quoted string wouldn't tell PHP to end that string. Torben > ----- Original Message ----- > From: "Brian Clark" <brianj@fusionwerks.com> > To: "PHP is not a drug." <php-general@lists.php.net> > Sent: Friday, February 01, 2002 12:54 AM > Subject: Re: [PHP] Re: Anyone Up? > > > > * hugh danaher (hdanaher@earthlink.net) [Feb 01. 2002 03:48]: > > > > > I think you'll need something like this: > > > VALUE=\'Your Name1\' / /single quote marks I believe (and I > certainly > > > could be wrong). > > > otherwise it'll truncate at 'Your' > > > of course, if this is what you want... > > > > (Not trying to pick on you, Hugh. <g>) > > > > It'd be better just to write proper HTML/XHTML and use double quotes. > > > > <?php > > /* php scripting */ > > ?> > > <!-- HTML --> > > <?php > > /* back to php scripting */ > > ?> > > > > or just: > > > > print '<input type="checkbox" value="Your Name1">'; > > > > But it would work with single quotes around attributes. I don't know if > > it'd validate though. > > > > -- > > Brian Clark | Avoiding the general public since 1805! > > Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 > > 5 out of 4 people have trouble with fractions. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#83091) next »