Re: Exiting from an include or required file

From: Date: Wed, 21 Aug 2002 14:42:51 +0000
Subject: Re: Exiting from an include or required file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113473@lists.php.net to get a copy of this message
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 an include file and continue in the calling > script! > > As an example > > FILE A: > > <?php > if (empty($_POST['search_criteria')) > { > echo "You must provide search criteria"; > > // exit the include file here!!!! But how? > } > > echo "You have provided serach criteria"; > ?> > > > FILE B > > #include "A"; > > <form method=post> > <input name=search_criteria type=text> > </form> > > TIA > > Henry

« previous php.general (#113473) next »