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" <[EMAIL PROTECTED]> > To: "PHP is not a drug." <[EMAIL PROTECTED]> > Sent: Friday, February 01, 2002 12:54 AM > Subject: Re: [PHP] Re: Anyone Up? > > > > * hugh danaher ([EMAIL PROTECTED]) [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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- Torben Wilson <[EMAIL PROTECTED]> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]