Well, Netscape breaks value="This is" to "This", but IE understands that as "This%20is". so if you set the value to be "This%20is", both Netscape and IE understands that as "This is". There are many other chars that can f**k up the value, so use htmlspecialchars() to correct that.
Niklas -----Original Message----- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 1. helmikuuta 2002 11:21 To: Php-General Subject: Re: [PHP] Re: Anyone Up? 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 ----- 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] -- 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]