RE: [PHP] header() ???

From: Date: Thu, 14 Sep 2000 03:25:17 +0000
Subject: RE: [PHP] header() ???
Groups: php.general 
Request: Send a blank email to php-general+get-16684@lists.php.net to get a copy of this message
Hi, but I can simply do this: if (!input_valid(..)) { include "error.php"; } why is header() needed? > Could you please give me a case under which header() need to be used? You may wish you verify a user's form input, and redirect them to an error page if it is not filled in properly. Or you may want to redirect on, say, a checkout page if you can't find a session identifier. Jason

« previous php.general (#16684) next »