Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Bas Jobsen
Do: FILE A: ?php if (empty($_POST['search_criteria')) { echo You must provide search criteria; // exit the include file here But how? } else { echo You have provided serach criteria; } ? Op woensdag 21 augustus 2002 16:39, schreef Henry: Hi All, I would like to exit from

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread Roedel, Mark
Seems like the easy way, at least in this case, would be to make the second part of your File A an else to your if. ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; } else { echo You provided search criteria; } --- Mark Roedel

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread M . A . Bond
: RE: [PHP] Exiting from an include or required file Seems like the easy way, at least in this case, would be to make the second part of your File A an else to your if. ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; } else { echo You

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Henry
Thanks, but my situation is slight more convoluted than I describe. I want to cascade down through a include chain and want to just stop processing the current include and return to the one which called it. Similar to exit() but only for the local scope. TIA Henry Mark Roedel [EMAIL

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Henry
02 15:48 To: Henry; php-general Subject: RE: [PHP] Exiting from an include or required file Seems like the easy way, at least in this case, would be to make the second part of your File A an else to your if. ?php if (empty($_POST['search_criteria'])) { echo You must provide search

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
: Wednesday, August 21, 2002 9:59 AM Subject: Re: [PHP] Exiting from an include or required file Thanks, but my situation is slight more convoluted than I describe. I want to cascade down through a include chain and want to just stop processing the current include and return to the one which

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Joseph W. Goff
] To: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 9:59 AM Subject: Re: [PHP] Exiting from an include or required file Thanks, but my situation is slight more convoluted than I describe. I want to cascade down through a include chain and want to just stop processing the current