Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-15 Thread Richard Lynch
On Sat, January 5, 2008 4:04 pm, Nisse Engström wrote: On Sat, 5 Jan 2008 01:08:13 -0500, tedd wrote: At 1:41 AM +0100 1/5/08, Nisse Engström wrote: On Fri, 4 Jan 2008 09:16:54 -0500, tedd wrote: At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread Nisse Engström
On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference depending upon

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread tedd
At 1:19 PM +0100 1/9/08, Nisse Engström wrote: On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse:

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread Nisse Engström
On Wed, 9 Jan 2008 10:30:59 -0500, tedd wrote: Yes, I said that there is no windows-1252 setting for Safari. It does not offer that named setting in it's list of text encodings available. There is no 1252 mentioned either -- however, that does not mean that it's not there under a

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-08 Thread Zoltán Németh
2008. 01. 7, hétfő keltezéssel 12.14-kor tedd ezt írta: At 4:36 PM +0100 1/7/08, Zoltán Németh wrote: 2008. 01. 7, hétf‘ keltezéssel 10.29-kor tedd ezt írta: however, on firefox with encoding auto-detection both page looks correctly and the same. greets Zoltán Németh Not that you are

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Nisse Engström
On Sun, 6 Jan 2008 11:28:55 -0500, tedd wrote: At 11:04 PM +0100 1/5/08, Nisse Engström wrote: The page encoding is determined by the HTTP `Content-Type:´ header. Period. A meta element may provide hints to a browser if the HTTP header is missing (eg. when saving a page to disc). In the

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference depending upon the text encoding used in my browser (Safari). For

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Zoltán Németh
2008. 01. 7, hétfő keltezéssel 10.29-kor tedd ezt írta: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread Robert Cummings
All of these look the same for me in Opera under Linux. Character sets are not a browser war issue, they're a character set/font issue. Just because a character set supports a character, doesn't mean the character font exists. Cheers, Rob. On Mon, 2008-01-07 at 10:29 -0500, tedd wrote: At

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 4:36 PM +0100 1/7/08, Zoltán Németh wrote: 2008. 01. 7, hétf‘ keltezéssel 10.29-kor tedd ezt írta: however, on firefox with encoding auto-detection both page looks correctly and the same. greets Zoltán Németh Not that you are claiming otherwise, but FF will render the pages incorrectly if

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-07 Thread tedd
At 10:41 AM -0500 1/7/08, Robert Cummings wrote: Character setsare not a browser war issue, they're a character set/font issue. Just because a character set supports a character, doesn't mean the character font exists. Cheers, Rob. Rob: What I meant by browser wars was that there is a

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-06 Thread tedd
At 11:04 PM +0100 1/5/08, Nisse Engström wrote: The page encoding is determined by the HTTP `Content-Type:´ header. Period. A meta element may provide hints to a browser if the HTTP header is missing (eg. when saving a page to disc). In the presence of a `Content-Type:´ header, the meta

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-05 Thread Nisse Engström
On Sat, 5 Jan 2008 01:08:13 -0500, tedd wrote: At 1:41 AM +0100 1/5/08, Nisse Engström wrote: On Fri, 4 Jan 2008 09:16:54 -0500, tedd wrote: At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: Nisse: Thanks again for your time and guidance.

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 5:04 PM, Nisse Engström [EMAIL PROTECTED] wrote: [snip!] The page encoding is determined by the HTTP `Content-Type:´ header. Period. [snip=again] Negative. If that were the case, what would be the sense in providing browser encoding translation? Have you noticed, for

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-04 Thread Nisse Engström
On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: At 4:24 PM +0100 1/3/08, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote: On Wed, 2 Jan 2008 19:36:56 -0500, tedd wrote: To find out, I did put the operation through FireFox and reversed the POST/GET operations to get a look at the string -- it is:

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-04 Thread tedd
At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: Nisse: I thank you for your most enlightened and informative reply. I cut/pasted your post into my list of things to remember. Cheers, tedd -- --- http://sperling.com

Re: [PHP] First stupid post of the year.

2008-01-04 Thread Jürgen Wind
tedd-2 wrote: At 3:28 PM -0600 1/3/08, Richard Lynch wrote: On Wed, January 2, 2008 5:26 pm, tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you

Re: [PHP] First stupid post of the year.

2008-01-04 Thread Web Design Company
Read google! - http://ooyes.net Web design company | http://ooyes.net Graphic design company | http://ooyes.net Outsourcing company -- View this message in context: http://www.nabble.com/First-stupid-post-of-the-year.-tp14583639p14618938.html Sent from the PHP - General mailing list

Re: [PHP] First stupid post of the year.

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 10:39 AM, Web Design Company [EMAIL PROTECTED] wrote: Read google! No! -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you.

Re: [PHP] First stupid post of the year.

2008-01-04 Thread tedd
At 7:39 AM -0800 1/4/08, Web Design Company wrote: Read google! New to this list, are you? tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First stupid post of the year.

2008-01-04 Thread tedd
At 6:55 AM -0800 1/4/08, Jürgen Wind wrote: FYI: output of http://www.l-i-e.com/a/ in SeaMonkey (Gecko, ),FF, default Char.encoding:Western ISO 8859-1 or UTF-8, IE: $_POST[a]: ' A ' 0: (160) 1: (32) 2: (160) 3: (32) 4: (160) 5: A (65) 6: (160) 7: (32) 8: (160) 9: (32) 10:

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-04 Thread Nisse Engström
On Fri, 4 Jan 2008 09:16:54 -0500, tedd wrote: At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: Nisse: I thank you for your most enlightened and informative reply. I cut/pasted your post into my list of things to remember. A few more random

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-04 Thread tedd
At 1:41 AM +0100 1/5/08, Nisse Engström wrote: On Fri, 4 Jan 2008 09:16:54 -0500, tedd wrote: At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: Nisse: Thanks again for your time and guidance. As you said, it's my understanding that a web

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread Nisse Engström
On Wed, 2 Jan 2008 19:36:56 -0500, tedd wrote: To find out, I did put the operation through FireFox and reversed the POST/GET operations to get a look at the string -- it is: %C2%A0%C2%A0%C2%A0Z%C2%A0%C2%A0%C2%A0 where Z is the value passed. Now, C2 (HEX) is a linefeed (194 DEC)

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread tedd
At 4:24 PM +0100 1/3/08, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote: On Wed, 2 Jan 2008 19:36:56 -0500, tedd wrote: To find out, I did put the operation through FireFox and reversed the POST/GET operations to get a look at the string -- it is: %C2%A0%C2%A0%C2%A0Z%C2%A0%C2%A0%C2%A0 where Z is

Re: [PHP] First stupid post of the year.

2008-01-03 Thread Richard Lynch
On Wed, January 2, 2008 5:26 pm, tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you guys/gals think? Nope, not a winner. But it produces some

Re: [PHP] First stupid post of the year.

2008-01-03 Thread Richard Lynch
On Wed, January 2, 2008 3:07 pm, Daniel Brown wrote: On Jan 2, 2008 3:58 PM, Richard Lynch [EMAIL PROTECTED] wrote: Works for me: [EMAIL PROTECTED] ~/cd $ php -a Interactive mode enabled ?php $a = 'nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;'; $b = str_replace('nbsp;', '', $a); echo

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread Richard Lynch
On Thu, January 3, 2008 11:39 am, tedd wrote: At 4:24 PM +0100 1/3/08, Nisse Engström wrote: On Wed, 2 Jan 2008 19:36:56 -0500, tedd wrote: To find out, I did put the operation through FireFox and reversed the POST/GET operations to get a look at the string -- it is:

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread Richard Lynch
On Wed, January 2, 2008 6:36 pm, tedd wrote: Now, why does a POST operation add in C2's? I'll leave that for another post. :-) I believe the POST operation adds nothing. The BROWSER interprets your nbsp; as whatever it finds most appropriate to slap into a button VALUE, given the charset and

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread tedd
At 3:35 PM -0600 1/3/08, Richard Lynch wrote: On Wed, January 2, 2008 6:36 pm, tedd wrote: Now, why does a POST operation add in C2's? I'll leave that for another post. :-) I believe the POST operation adds nothing. The BROWSER interprets your nbsp; as whatever it finds most appropriate

Re: [PHP] First stupid post of the year.

2008-01-03 Thread tedd
At 3:28 PM -0600 1/3/08, Richard Lynch wrote: On Wed, January 2, 2008 5:26 pm, tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you guys/gals think?

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-03 Thread tedd
At 3:33 PM -0600 1/3/08, Richard Lynch wrote: On Thu, January 3, 2008 11:39 am, tedd wrote: That's a valid point. Not only the encoding that's declared for the page via it's html DOCTYPE, but also what encoding was used to actually save that file on the server. This entire encoding

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've

Re: [PHP] First stupid post of the year.

2008-01-02 Thread David Giragosian
On 1/2/08, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) why dont you just style the button w/ css? style=width:200px -nathan

RE: [PHP] First stupid post of the year.

2008-01-02 Thread Warren Vail
: [PHP] First stupid post of the year. On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:55 PM, tedd [EMAIL PROTECTED] wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) why dont you

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:55 PM, tedd [EMAIL PROTECTED] wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) why dont you

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Afan Pasalic
tedd wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) why dont you just style the button w/ css? style=width:200px

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Scott Wilcox
Add it inline, and it'll override everything else. input type=submit style=width: 200px; name=bob / tedd wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit = trim(str_replace('nbsp;','',$submit); ? Even with adding an additional ),

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Nathan Nobbe wrote: On Jan 2, 2008 1:55 PM, tedd [EMAIL PROTECTED] wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider)

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit =

RE: [PHP] First stupid post of the year.

2008-01-02 Thread Bastien Koert
if you need to make the button wider, just style it with css and leave the value to be what it needs to be input type='text' width='100px' value='Submit' name='submit' Date: Wed, 2 Jan 2008 13:34:43 -0500 To: php-general@lists.php.net From: [EMAIL PROTECTED] Subject: [PHP] First stupid post

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit =

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
Hi gang: My apologies to all who responded with a css solution -- css DOES indeed work!. I went from using button tags, which could be styled, but IE had problems with them -- to using submit buttons that IE could use, but my css no longer worked. The reason why my css no longer worked was

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 2:10 PM, Jim Lucas [EMAIL PROTECTED] wrote: I prefer this approach instead. html head title/title style button, input[type=submit], input[type=reset], input[type=button] { width: 250px; } /style

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Nathan Nobbe wrote: i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan problem is, most of the responses have not answered the OP's inital question. It wasn't about

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
tedd wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've tried trim($submit); but,

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
tedd wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've tried trim($submit); but, that don't work.

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:18 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your

Re: [PHP] First stupid post of the year.

2008-01-02 Thread afan pasalic
Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit =

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit =

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Dave Goodchild
don't use nonbreaking spaces use CSS to style the input button then you wont have to deal with redundant presentational gunk in your data On 1/2/08, David Giragosian [EMAIL PROTECTED] wrote: On 1/2/08, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED]

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:27 PM, Jim Lucas [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan problem is, most of the

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 1:26 PM, afan pasalic [EMAIL PROTECTED] wrote: Since you don't use nbsp; any more input type=submit name=submit value=A style=width:160px;align:center;text-align:center; / you don't need $submit = trim(str_replace('nbsp;','',$submit)); right? Negative. That was to show

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:27 AM -0800 1/2/08, Jim Lucas wrote: The problem is, is that you are not getting Apparently, that makes two of us. :-) nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; when you submit your form. It is being URL encoded by the browser and you are actually getting

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:22 PM -0500 1/2/08, Nathan Nobbe wrote: first off; i think css is the way to go w/ this; -snip No, you are absolutely correct. The problem was that I was in a rush and forgot that I had used a class but had defined an id in my css. or maybe this is the first stupid response of the

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
echo trim(str_replace('nbsp;', '', $submit); On Wed, January 2, 2008 12:34 pm, tedd wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 1:27 pm, Jim Lucas wrote: The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; The problem is, is that you are not getting nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; when you submit your form. It is being URL encoded by the browser and you are

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:27 AM -0800 1/2/08, Jim Lucas wrote: Note: You might wonder why trim(html_entity_decode('nbsp;')); doesn't reduce the string to an empty string, that's because the 'nbsp;' entity is not ASCII code 32 (which is stripped by trim()) but ASCII code 160 (0xa0) in the default ISO 8859-1

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 1:25 pm, Jack Mays wrote: Daniel Brown wrote: // Your existing code here $submit = trim(str_replace('nbsp;','',$submit); Read the docs for trim, you can't use it inline with other functions, Please point to the specific portion of the docs in which you imagine

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:29 PM -0600 1/2/08, Jack Mays wrote: Just so we have all the info, why are you wanting to do this? Why not just have the button text be what you want it instead of trying to do manipulation on it's value? Why? It was just a mistaken assumption that I could not style a submit button

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 11:10 AM -0800 1/2/08, Jim Lucas wrote: I prefer this approach instead. html head title/title style button, input[type=submit], input[type=reset], input[type=button] { width: 250px; } /style /head body form

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:25 PM -0600 1/2/08, Jack Mays wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A Read the docs for trim, you can't use it inline with other functions, it will not trim the input. you have to seperate it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 7:36 PM + 1/2/08, Dave Goodchild wrote: don't use nonbreaking spaces use CSS to style the input button then you wont have to deal with redundant presentational gunk in your data OK! But, do you have a solution to the original question? Cheers, tedd -- --- http://sperling.com

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Wolf
tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've tried

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:36 PM -0500 1/2/08, Nathan Nobbe wrote: and yes several people posted nearly identical solutions. i know its futile to complain, sort of like the [SOLVED] thing we discussed a while back. well i just find it annoying when people dont bother to read through the currently posted solutions

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Janet Valade
tedd wrote: However, I still have not been able to remove nbsp; from a string. IThe trim(str_replace('nbsp;','',$submit)); seems to work fine for me when I assign the string from your message to $submit. Copy/pasted it. Have you looked at $submit with var_dump before you tried to change

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Wolf
tedd [EMAIL PROTECTED] wrote: At 1:25 PM -0600 1/2/08, Jack Mays wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A Read the docs for trim, you can't use it inline with other functions, it will

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Robert Cummings
?php $foo = 'nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;'; $foo = str_replace( 'nbsp;', ' ', $foo ); $foo = trim( ereg_replace( '[ ]+', ' ', $foo ) ); echo '['.$foo.']'.\n; ? I could have replaced 'nbsp;' with the empty string, but in case you have labels with more than one word I took a

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
On Jan 2, 2008 12:11 PM, tedd [EMAIL PROTECTED] wrote: At 2:36 PM -0500 1/2/08, Nathan Nobbe wrote: and yes several people posted nearly identical solutions. i know its futile to complain, sort of like the [SOLVED] thing we discussed a while back. well i just find it annoying when people

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 3:16 PM, Wolf [EMAIL PROTECTED] wrote: [snip=all] Okay, first of all, Tedd's right my thing didn't work, because I had copied over a script I was working with on the CLI. Secondly, the trim() and str_replace() things work great from the CLI, but not when transmogrified

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Richard Lynch
On Wed, January 2, 2008 2:09 pm, tedd wrote: At 1:25 PM -0600 1/2/08, Jack Mays wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A Read the docs for trim, you can't use it inline with other functions, it will not

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 3:58 PM, Richard Lynch [EMAIL PROTECTED] wrote: Works for me: [EMAIL PROTECTED] ~/cd $ php -a Interactive mode enabled ?php $a = 'nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;'; $b = str_replace('nbsp;', '', $a); echo b: $b\n\n; $c = trim($b); echo c: $c\n\n; ? b:

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Casey
On Jan 2, 2008 12:58 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 2, 2008 2:09 pm, tedd wrote: At 1:25 PM -0600 1/2/08, Jack Mays wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A Read the

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 4:08 PM, Casey [EMAIL PROTECTED] wrote: ... *pokes my solution*... $value = trim($value, chr(32) . chr(160)); You're solution is good, Casey we're just ignoring you because you smell funny. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Robert Cummings
On Wed, 2008-01-02 at 16:15 -0500, Daniel Brown wrote: On Jan 2, 2008 4:08 PM, Casey [EMAIL PROTECTED] wrote: ... *pokes my solution*... $value = trim($value, chr(32) . chr(160)); You're solution is good, Casey we're just ignoring you because you smell funny. Is that what that is

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
Richard Lynch wrote: On Wed, January 2, 2008 1:27 pm, Jim Lucas wrote: The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; The problem is, is that you are not getting nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; when you submit your form. It is being URL encoded by

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you guys/gals think? Nope, not a winner. But it produces some interesting results. Cheers, tedd -- ---

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:36 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 3:16 PM, Wolf [EMAIL PROTECTED] wrote: [snip=all] Okay, first of all, Tedd's right my thing didn't work, because I had copied over a script I was working with on the CLI. Secondly, the trim() and str_replace() things work

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 2:58 PM -0600 1/2/08, Richard Lynch wrote: Works for me: [EMAIL PROTECTED] ~/cd $ php -a Interactive mode enabled ?php $a = 'nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;'; $b = str_replace('nbsp;', '', $a); echo b: $b\n\n; $c = trim($b); echo c: $c\n\n; ? b:A c: A That would work

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:08 PM -0800 1/2/08, Casey wrote: OKAY. Let's clarify. Here's the string in HTML: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; The browser then passes it to GET/POST. It decodes the entities, and then urlencodes them. Now it looks like this: %a0%20%a0%20%a0%20%a0A%a0%20%a0%20%a0%20%a0

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 4:15 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 4:08 PM, Casey [EMAIL PROTECTED] wrote: ... *pokes my solution*... $value = trim($value, chr(32) . chr(160)); You're solution is good, Casey we're just ignoring you because you smell funny. I'm not ignoring him -- it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:11 PM -0500 1/2/08, Wolf wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php input type=text value=A size=50 input type=submit Wolf Nice idea, but the submit button has to have the value of A. Cheers, tedd -- ---

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:16 PM -0500 1/2/08, Wolf wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php $string=nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;; $string=str_replace(nbsp;,,$string); $string=ltrim(rtrim($string))); echo The string is

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 3:20 PM -0500 1/2/08, Robert Cummings wrote: ?php $foo = 'nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp;'; $foo = str_replace( 'nbsp;', ' ', $foo ); $foo = trim( ereg_replace( '[ ]+', ' ', $foo ) ); echo '['.$foo.']'.\n; ? Nope, still didn't work for going from this: input type=submit

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 12:27 PM -0800 1/2/08, Casey wrote: $value = trim($value, chr(32) . chr(160)); Cookie for me? :) -- -Casey No cookie for you. It didn't work. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 6:32 PM, tedd [EMAIL PROTECTED] wrote: At 3:36 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 3:16 PM, Wolf [EMAIL PROTECTED] wrote: [snip=all] Okay, first of all, Tedd's right my thing didn't work, because I had copied over a script I was working with on the

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jim Lucas
tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you guys/gals think? Nope, not a winner. But it produces some interesting results. Cheers,

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-02 Thread tedd
At 6:42 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 6:32 PM, tedd [EMAIL PROTECTED] wrote: Nope, it produces: %C2%C2%C2%C2%C2A%C2%C2%C2 Thanks for trying :-) Why is it that things work perfectly for me until you test them? It's because I have a tester. You see, it's easy

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 4:34 PM -0800 1/2/08, Jim Lucas wrote: tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you guys/gals think? Nope, not a winner. But it

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-02 Thread Daniel Brown
On Jan 2, 2008 7:36 PM, tedd [EMAIL PROTECTED] wrote: At 6:42 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 6:32 PM, tedd [EMAIL PROTECTED] wrote: Nope, it produces: %C2%C2%C2%C2%C2A%C2%C2%C2 Thanks for trying :-) Why is it that things work perfectly for me until

Re: [PHP] First stupid post of the year.

2008-01-02 Thread tedd
At 1:38 AM +0100 1/3/08, Jochem (mobile) wrote: tedd schreef: At 3:11 PM -0500 1/2/08, Wolf wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php input type=text value=A size=50 input type=submit Wolf Nice idea, but the