RE: [PHP] Re: Anyone Up?

From: Date: Fri, 01 Feb 2002 09:34:15 +0000
Subject: RE: [PHP] Re: Anyone Up?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83090@lists.php.net to get a copy of this message
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:hdanaher@earthlink.net] 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" <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

« previous php.general (#83090) next »