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

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 > unde

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: >> >>

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: >> >> >> > > Nisse: > > No, there is quite a difference

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 t

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 dif

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 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 12:0

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: > > > > > > > > Nisse: > > No, there is quite

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: Nisse: No, there is quite a difference depending upon the text encoding used in my browser (Safari).

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 element >>may provide hints to a browser if the HTTP header >>is missing (eg. when saving a page to disc). In t

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 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 element shoul

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, fo

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 ti

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-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 mor

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: (16

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 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 a

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 y

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, "

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 http://ancientstones.com

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

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 proces

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: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   as whatever it finds most appropriate to sla

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   as whatever it finds most appropriate to slap into a button VALUE, given the charset and wha

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.

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 produ

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 >> >> > $a = '       A       '; >> $b = str_replace(' ', '', $a); >> echo "b: $b\n\n"; >> $c = t

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. [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.

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 Wolf Nice idea, but the submit button has to have the value of A. well

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 wor

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

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 ea

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

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 workin

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 (http://www.php.net/)

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

2008-01-02 Thread tedd
At 3:20 PM -0500 1/2/08, Robert Cummings wrote: Nope, still didn't work for going from this: to this: A via $submit = $_POST['submit']; Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To un

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="       A       "; $string=str_replace(" ","",$string); $string=ltrim(rtrim($string))); echo "The string is now:$string\n"; Outputs: The stri

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 Wolf Nice idea, but the submit button has to have the value of A. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http:/

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 don

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:        A        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 Then PHP receives it, urldecodes

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 b:A c: A That would work for that, but not for this: Go from this: via this: $submit = $_POST['submit'] to: A It doesn't appear as simple as what people think it

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 wo

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 -- --- http

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: >>> >>>        A        >>> >> The problem is, is that you are not getting >> >>        A        >> 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 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 wha

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 a

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: > >        A        > > to this A >

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 > > $a = '       A       '; > $b = str_replace(' ', '', $a); > echo "b: $b\n\n"; > $c = trim($b); > echo "c: $c\n\n"; > ?> > b:A > > c: A Tedd's

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:        A        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 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 transmogrif

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 wh

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

2008-01-02 Thread Robert Cummings
I could have replaced ' ' with the empty string, but in case you have labels with more than one word I took a normalizing approach. Cheers, Rob. On Wed, 2008-01-02 at 13:34 -0500, tedd wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > >        A     

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: > >>> > >>>       A        > >>> > >>>to this A > > > >Read the docs for trim, you can't use it inline with other > >functions, it

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   from a string. IThe trim(str_replace(' ','',$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 it? Perhap

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 bef

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: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > > trim($submit

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 http

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:        A        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 out, e.g.: $submit = str_re

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. button, input[type=submit], input[type=reset], input[type=button] { width: 250px; } I prefer this: in css .button {

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 and

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(' ','',$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 imagi

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(' ')); doesn't reduce the string to an empty string, that's because the ' ' entity is not ASCII code 32 (which is stripped by trim()) but ASCII code 160 (0xa0) in the default ISO 8859-1 characterset.

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: >> >>        A        >> > The problem is, is that you are not getting > >        A        > when you submit your form. > > It is being URL encoded by the browser and you are actually getting > >  %20 %20 %20&n

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

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

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 year

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. :-)        A        when you submit your form. It is being URL encoded by the browser and you are actually getting  %20 %20 %20 A %20 %20&n

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   any more > style="width:160px;align:center;text-align:center;" /> > you don't need > $submit = trim(str_replace(' ','',$submit)); > right? Negative. That was to show how Form B is handled. > Also (fine t

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, m

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 PROTECT

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:        A        to this A Read the docs for trim, you can't use it inline with other functions, it

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: >> >>        A        >> >> to this A >> >>> >> // Your existing code here >>> $submit = trim(s

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:        A        to this A >// Your existing code here > >$submit =

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:        A        (it's there to make a submit button wider) How can I strip out the " " from the $submit string leaving "A"? I've tried trim($submit); but, that don't work. Neither does: $submit = str_r

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: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " 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 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 abo

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. > > > > > > button, > input[type=submit], > input[type=reset], > input[type=button] { > width: 250px; > } > > > > >

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 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 I used:

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: > >        A        > > to this A > > > >// Your existing code here > >$submit = trim(str_replace(' ','',$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 > Date: Wed, 2 Jan 2008 13:34:43 -0500> To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Subject: [PHP] First stupid post of the year.> > Hi gang:> > I have a> > $submit = $_POST

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: > >        A        > > to this A > > > >// Your existing code here > >$submit = trim(str_replace(' ','',$submit); > >

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 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 >>> <[EMAIL PROTECTED]> wrote: >>> >>> >>>        A        >>> >>> (it's there to make a submit button wider) >

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:        A        to this A Even with adding an additional ")", that didn't work either. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://eart

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

2008-01-02 Thread Scott Wilcox
Add it inline, and it'll override everything else. tedd wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/

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 <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/ css? style="width:200px" -nathan -nathan: Have y

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 > ><[EMAIL PROTECTED]> wrote: > > > > > >       A        > > > >(it's there to make a submit button wider) > > > > > >why dont you just st

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 > ><[EMAIL PROTECTED]> wrote: > > > > > >       A        > > > >(it's there to make a submit button wider) > > > > > >why dont you just s

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: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > > tri

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

2008-01-02 Thread Warren Vail
> Cc: PHP General list > Subject: Re: [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 contain

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 <[EMAIL PROTECTED]> wrote:        A        (it's there to make a submit button wider) why dont you just style the button w/ css? style="width:200px" -nathan -nathan: Have you tried that

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: > > > >        A        > > > > (it's there to make a submit button wider) > > > > How can

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: > >        A        > > (it's there to make a submit button wider) > > How can I strip out the " " from the $submit string leaving "A"? > > I've tried > >tri