Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Clancy
On Sun, 8 Mar 2009 01:54:22 +0600, le...@phpxperts.net (9el) wrote: >> >> >> They probably thought you couldn't handle the responsibility... and if >> you can't think for yourself then they may be right ;) >> >> > Once we have goto, it's a short slide down a slippery slope to setjmp >> > and longj

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Mar 7, 2009 at 15:23, Robert Cummings wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Daniel Brown
On Sat, Mar 7, 2009 at 15:23, Robert Cummings wrote: > > > for( ; ; ) > { >    echo "You can make an endless loop in many, many ways.\n"; > } > > ?> -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at Pilot

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Robert Cummings
On Sun, 2009-03-08 at 01:54 +0600, 9el wrote: > > > > > > They probably thought you couldn't handle the responsibility... and if > > you can't think for yourself then they may be right ;) > > > > > Once we have goto, it's a short slide down a slippery slope to setjmp > > > and longjmp. And thence,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread 9el
> > > They probably thought you couldn't handle the responsibility... and if > you can't think for yourself then they may be right ;) > > > Once we have goto, it's a short slide down a slippery slope to setjmp > > and longjmp. And thence, the apocalypse. ;-} > > Or maybe nirvana is just over the ho

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Robert Cummings
On Sat, 2009-03-07 at 11:39 -0500, Paul M Foster wrote: > On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote: > > > On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote: > > > On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: > > > > > > > On Fri, 6 Mar 2009 08:53:44 -0500, da

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Paul M Foster
On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote: > On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote: > > On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: > > > > > On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: > > > > > > >On Fri, Mar 6, 200

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Daniel Brown
On Sat, Mar 7, 2009 at 02:12, Paul M Foster wrote: > > Someone would add gotos to a language *on purpose*?! Keep in mind that, unlike BASIC, the PHP implementation of GOTO will go to a label. Don't worry, you don't have to start line programming. (Those of you who read multiple threa

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Robert Cummings
On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote: > On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: > > > On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: > > > > >On Fri, Mar 6, 2009 at 00:12, Clancy wrote: > > > > > > > > >Then you'll be happy with

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Paul M Foster
On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: > On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: > > >On Fri, Mar 6, 2009 at 00:12, Clancy wrote: > > > >Then you'll be happy with the advent of PHP6: > > > >http://php.net/goto > Someone would ad

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Clancy
On Fri, 6 Mar 2009 08:58:17 -0600, halip...@gmail.com (haliphax) wrote: >>> >> >    I wholeheartedly concur.  The first programming language I taught >>> >> > myself was BASIC about 23 years ago.  We may never see the inclusion >>> >> > of GOSUB in PHP, but GOTO is certainly worthwhile. >>> >> > >

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 19:29, Clancy wrote: > > Great news! .. Now ALL I have to do is to persuade my host to update from > 4.3.9. (or > maybe switch!) If your host is only using PHP4, you probably should switch because who knows what else they've chosen not to upgrade. Check out th

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Clancy
On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: >On Fri, Mar 6, 2009 at 00:12, Clancy wrote: >> >> Don't take me too seriously on this. But it riles me that the same peoplewho >> threw out the >> GOTO as being too dangerous could then introduce the break statement which

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Stuart
2009/3/6 haliphax > On Fri, Mar 6, 2009 at 9:08 AM, Stuart wrote: > > 2009/3/6 Robert Cummings > >> > >> I just turned 35... today... that's young by the standards of a 70 year > >> old >:) > > > > Happy Birthday ya wise old git. > > I started with BBC Basic, moved on to gwbasic then to C, and

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread PJ
Robert Cummings wrote: > On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: > >> On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings wrote: >> >>> On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: >>> On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: > On Fri,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 9:08 AM, Stuart wrote: > 2009/3/6 Robert Cummings >> >> I just turned 35... today... that's young by the standards of a 70 year >> old >:) > >  Happy Birthday ya wise old git. > I started with BBC Basic, moved on to gwbasic then to C, and the rest, as > they say, is history

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Stuart
2009/3/6 Robert Cummings > I just turned 35... today... that's young by the standards of a 70 year > old >:) Happy Birthday ya wise old git. I started with BBC Basic, moved on to gwbasic then to C, and the rest, as they say, is history. First program I ever wrote was a game called Spider. I

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:56 AM, Robert Cummings wrote: > On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: >> On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings wrote: >> > On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: >> >> On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: >> >> > On Fri,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:51 -0600, haliphax wrote: > On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings wrote: > > On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: > >> On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: > >> > On Fri, Mar 6, 2009 at 09:15, Robert Cummings > >> > wrote: > >> >>

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:54 -0500, Daniel Brown wrote: > On Fri, Mar 6, 2009 at 08:53, Daniel Brown wrote: > > > >Then you'll be happy with the advent of PHP6: > > > >http://php.net/goto > > Uhh yeah, and 5.3 before that even. Duh. I remember the internals debate about 2 or

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:46 AM, Robert Cummings wrote: > On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: >> On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: >> > On Fri, Mar 6, 2009 at 09:15, Robert Cummings wrote: >> >> >> >> I remember the internals debate about 2 or 3 years ago. I was o

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Robert Cummings
On Fri, 2009-03-06 at 08:38 -0600, haliphax wrote: > On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: > > On Fri, Mar 6, 2009 at 09:15, Robert Cummings wrote: > >> > >> I remember the internals debate about 2 or 3 years ago. I was on the pro > >> goto side... it does have uses when used proper

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread haliphax
On Fri, Mar 6, 2009 at 8:19 AM, Daniel Brown wrote: > On Fri, Mar 6, 2009 at 09:15, Robert Cummings wrote: >> >> I remember the internals debate about 2 or 3 years ago. I was on the pro >> goto side... it does have uses when used properly. > >    I wholeheartedly concur.  The first programming la

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 09:15, Robert Cummings wrote: > > I remember the internals debate about 2 or 3 years ago. I was on the pro > goto side... it does have uses when used properly. I wholeheartedly concur. The first programming language I taught myself was BASIC about 23 years ago. We may

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Daniel Brown wrote: > >    Then you'll be happy with the advent of PHP6: > >        http://php.net/goto Uhh yeah, and 5.3 before that even. Duh. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 00:12, Clancy wrote: > > Don't take me too seriously on this. But it riles me that the same peoplewho > threw out the > GOTO as being too dangerous could then introduce the break statement which, > as I said, > it's like a GOTO without a target. As a long-time assembly pro

Re: [PHP] Re: if elseif elseif elseif....

2009-03-05 Thread Clancy
On Fri, 06 Mar 2009 10:16:47 +1100, dmag...@gmail.com (Chris) wrote: > >> Rather than encoding all the variable names into one long unwieldy set of >> statements, I >> would put them all into an array, and then use a loop to process the array. >> This way all >> the variable names are together,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-05 Thread Chris
Rather than encoding all the variable names into one long unwieldy set of statements, I would put them all into an array, and then use a loop to process the array. This way all the variable names are together, and the next time you want to enter another set of variables you can use the same c

Re: [PHP] Re: if elseif elseif elseif....

2009-03-05 Thread PJ
Davi Ramos wrote: > I tought you forgot to initializae the $obligatoryFieldNotPresent variable, > as PHP create variables when they are initialized, the > $obligatoryFieldNotPresent variable is created inside the if. > > $obligatoryFieldNotPresent = 0; > > if (strlen($_POST["titleIN"]) == 0 ) { >