ssage -
From: "Michael Zornek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 1:08 PM
Subject: [PHP] Exit script early
> Ok,
>
> So I'm creating a details.php page where I'm expecting the url to be
> something like:
>
&
RTFM re: Exit and Continue.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:08PM >>>
Ok,
So I'm creating a details.php page where I'm expecting the url to be
something like:
/
> So I'm creating a details.php page where I'm expecting the url to be
> something like:
> My question is "what command can I use to end the script [inside the
> top part of that if statement]?"
Ironically enough, exit();
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
exit;
=)
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-07-16 at 13:08, Michael Zornek wrote:
> Ok,
>
> So I'm creating a details.php page where I'm expecting the url to be
> something like:
>
> /details.php?id=12345
>
> Thus in my php I have the following:
>
> if (!isset($id))
> { // if no id
Ok,
So I'm creating a details.php page where I'm expecting the url to be
something like:
/details.php?id=12345
Thus in my php I have the following:
if (!isset($id))
{ // if no id exsits
// Create a page saying ID not found, goto index
writeHTMLTag();
writeHeader("Error", "never")
5 matches
Mail list logo