Re: [PHP] goto - My comments

2010-12-31 Thread Govinda
Would you please look at the code you wrote again. I must have botched it, because both the age and kitten form still are on the same page. The age page should appear, the data should be accepted and then the kitten page should appear. Ethan Hi Ethan, I don't mean to get in between yo

Re: Fwd: Fwd: Re: [PHP] goto - My comments

2010-12-30 Thread Ethan Rosenberg
At 02:38 PM 12/27/2010, Jim Lucas wrote: On 12/27/2010 10:42 AM, Ethan Rosenberg wrote: > > Now, here is the real puzzler > > The purpose of this routine is to be able to have two(2) forms on one page,but > not simultaneously.Additionally, l do not wish to call a separate program every >

Re: Fwd: Fwd: Re: [PHP] goto - My comments

2010-12-27 Thread Jim Lucas
On 12/27/2010 10:42 AM, Ethan Rosenberg wrote: > Jim - > > Thank you ever so much. > > At 01:58 PM 12/24/2010, you wrote: > >> Here you are using two different arrays. Yes, I know, they are basically the >> same, but they are truly not the same. In your case, use $_POST >> >> This is what

Re: Fwd: Fwd: Re: [PHP] goto - My comments

2010-12-24 Thread Jim Lucas
query: select * from Intake3 where AND `Site` = 'AA' I can't figure out what is happening. Would you please help. Thanks again. Ethan +++ Date: Tue, 21 Dec 2010 22:33:17 -0800 From: Jim Lucas To: Ethan Rosenberg CC: "php-db-lists.php.net", php-general@lists.php.net

Re: [PHP] goto - My comments

2010-12-21 Thread Jim Lucas
On 12/18/2010 9:17 PM, Ethan Rosenberg wrote: Dear List - Thanks to all for your EXCELLENT comments. I definitly agree that goto is a command to be avoided at all costs. In this case, I could not figure out how to acheive the desired result without the goto. So being a newbie, I humbly reque

Re: [PHP] goto - My comments

2010-12-18 Thread Thomas Anderson
On Sat, Dec 18, 2010 at 11:44 PM, Robert Cummings wrote: > On 10-12-19 12:17 AM, Ethan Rosenberg wrote: >> >> Dear List - >> >> Thanks to all for your EXCELLENT comments.  I definitly agree that >> goto is a command to be avoided at all costs. > > Closed-minded drivel (or you're buttering up the p

Re: [PHP] goto - My comments

2010-12-18 Thread Robert Cummings
On 10-12-19 12:17 AM, Ethan Rosenberg wrote: Dear List - Thanks to all for your EXCELLENT comments. I definitly agree that goto is a command to be avoided at all costs. Closed-minded drivel (or you're buttering up the popular opinion crowd). A better approach is that goto should be used with

[PHP] goto - My comments

2010-12-18 Thread Ethan Rosenberg
Dear List - Thanks to all for your EXCELLENT comments. I definitly agree that goto is a command to be avoided at all costs. In this case, I could not figure out how to acheive the desired result without the goto. So being a newbie, I humbly request that you show [and at the same time t

Re: [PHP] goto label

2003-12-08 Thread Curt Zirzow
* Thus wrote Nitin ([EMAIL PROTECTED]): > Hi all, > > I was wondering, if there's any way to achieve 'goto "label":' using PHP The closest you'll get to label's in php is the break statement. while (loop) { while (loop) { break 2; // leave 2 loops } while (loop) { break; // leav

RE: [PHP] goto label

2003-12-08 Thread Jay Blanchard
[snip] I was wondering, if there's any way to achieve 'goto "label":' using PHP [/snip] Are you trying to go to a section of code to perform some operations on current variables? If so use functions http://us3.php.net/manual/en/ref.funchand.php . If you have some sort of decisive mechanism use swi

[PHP] goto label

2003-12-08 Thread Nitin
Hi all, I was wondering, if there's any way to achieve 'goto "label":' using PHP Thanx for ur time Nitin

Re: [PHP] goto

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 1:22:07 PM, Stephen Brewster wrote: > HTML > > > > > > > > > > PHP > --- > if($type == 'LOOP') { >$sql = 'SELECT * FROM products'; >$result = mysql_query($sql, $db); >$record = $mysql_fetch_array($result, MYSQL_ASSOC);

[PHP] goto

2002-06-13 Thread Stephen Brewster
I am wirting a code seperation engine for PHP, the idea of which is it will remove the need for me to have to build the majority of the websites at my company. The designers will be able to build the html in dreamweaver or similar and then insert custom tags into their code. The engine will parse

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Martin Towell
FYI: c and c++ do have goto -Original Message- From: JSheble [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:29 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] GOTO command. Doest it exist? I sure hope I'm not going to stir up any trouble, but why exactly would you need a

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread JSheble
AFAIK C, C++, and some of the more less known languages such as Clipper, FORCE do not have GOTO statements. They haven't been missed either. >>-Original Message- >>From: David Robley [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, June 11, 2002 9:32 PM >>To: [EMA

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread David Robley
In article <001901c21190$c2ffc4e0$017f@localhost>, [EMAIL PROTECTED] says... > Many will tell you that the goto command is extinct. It isn't, it's just > evolved into the function command. What you do now is create a function: > > function some_name($variable,$other_variable,...) > { >

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Martin Towell
functions are evolved version of gosub/call - not goto w/ goto, there's no way of returning back to where you came from, unless you use another goto -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:52 AM To: php Subject: Fw: [PHP]

Fw: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread hugh danaher
- Original Message - From: "hugh danaher" <[EMAIL PROTECTED]> To: "Carlos U. Cirello Filho" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:41 PM Subject: Re: [PHP] GOTO command. Doest it exist? > Many

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Rasmus Lerdorf
ld be able to do code using just those basic elements > (sequence, loops, conditions -> basic flowchart "commands") > > just my 2c worth > > -Original Message- > From: David Freeman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 8:34 AM > To: [EMAIL P

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Edward Marczak
On 6/11/02 4:06 PM, "Chris Hewitt" <[EMAIL PROTECTED]> wrote: > Carlos, > > A search of the on-line manual does not find it > (http://www.php.net/manual) but even if it has, I would advise you not > to use it. Its a throwback to the 1970s before "structured programming". Sometimes, it's appropr

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Martin Towell
conditions -> basic flowchart "commands") just my 2c worth -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 8:34 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] GOTO command. Doest it exist? > I do beg your pardon... But does PHP not hav

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread David Freeman
> I do beg your pardon... But does PHP not have GOTO command? Why do you need one? In my experience, going right back to BASIC over 10 years ago, it's rarely _necessary_ to have a goto. In php I suspect you'd get similar functionlity out of either include() for creating functions. Not using

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread hugh danaher
PROTECTED]> Sent: Tuesday, June 11, 2002 12:34 PM Subject: [PHP] GOTO command. Doest it exist? > I do beg your pardon... But does PHP not have GOTO command? > > Am I wrong? > > Carlos Cirello > > > > -- > PHP General Mailing List (http://www.php.net/) > To u

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Carlos U. Cirello Filho
I am affraid to say that there is indeed, however not under keyword goto but under commentaries of do while statements.. "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Carlos, > > A search of the on-line manual does not find it > (http://www.php

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Chris Hewitt
Carlos, A search of the on-line manual does not find it (http://www.php.net/manual) but even if it has, I would advise you not to use it. Its a throwback to the 1970s before "structured programming". Regards Chris Carlos U. Cirello Filho wrote: >I do beg your pardon... But does PHP not hav

[PHP] GOTO command. Doest it exist?

2002-06-11 Thread Carlos U. Cirello Filho
I do beg your pardon... But does PHP not have GOTO command? Am I wrong? Carlos Cirello -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GoTo URL Function?

2001-08-20 Thread Tyler Longren
header("Location: http://location.com/blah.php";); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 13:56:25 -0500 "RoyW" <[EMAIL PROTECTED]> wrote: > Hi, > > I am sure there is an easy way to do this... > > But when my script is done do

RE: [PHP] GoTo URL Function?

2001-08-20 Thread Jeff Oien
http://www.php.net/manual/en/function.header.php > Hi, > > I am sure there is an easy way to do this... > > But when my script is done doing whatever I want it to do - RATHER than > print text and all to a page, I want the browser (within the same window) to > go to a specific URL > > Can this

[PHP] GoTo URL Function?

2001-08-20 Thread RoyW
Hi, I am sure there is an easy way to do this... But when my script is done doing whatever I want it to do - RATHER than print text and all to a page, I want the browser (within the same window) to go to a specific URL Can this be done - let's say for example to: http://www.yahoo.com Thanks!