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

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: snip 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 I used. As per

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

2010-12-24 Thread Jim Lucas
...@lists.php.net, php-general@lists.php.net Subject: Re: [PHP] goto - My comments 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

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

[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

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

Re: [PHP] goto - My comments

2010-12-18 Thread Thomas Anderson
On Sat, Dec 18, 2010 at 11:44 PM, Robert Cummings rob...@interjinn.com 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

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

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; // leave

[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

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002, 1:22:07 PM, Stephen Brewster wrote: HTML table products type=loop tr tdproducts type=text field=name/td tdproducts type=text field=price/td /tr products type=endloop /tr PHP --- if($type == 'LOOP') { $sql = 'SELECT * FROM

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

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

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

2002-06-11 Thread hugh danaher
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 unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net

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 Martin Towell
- 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 have GOTO command? Why do you need one? In my experience, going right back to BASIC over 10

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 appropriate. You

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

2002-06-11 Thread Rasmus Lerdorf
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 have GOTO command? Why do

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 will tell you that the goto command is extinct. It isn't, it's

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] GOTO

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 JSheble
++, 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: [EMAIL PROTECTED] Subject: Re: [PHP] GOTO command

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 GOTO

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

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 be done

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 doing