RE: [PHP-DB] elseif with header

From: Date: Tue, 21 Jan 2003 06:54:27 +0000
Subject: RE: [PHP-DB] elseif with header
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24996@lists.php.net to get a copy of this message
You can just as simply include the files you need, there is no need for using the headers. Did the script return any errors? -----Oorspronkelijk bericht----- Van: Addison Ellis [mailto:addison@bellsouth.net] Verzonden: dinsdag 21 januari 2003 1:19 Aan: php-db@lists.php.net Onderwerp: [PHP-DB] elseif with header hello and thank you... i have two pages where on 1-category is selected. on 2 subcategory is selected. on submit from page two it goes to direct.php. there i have if ($category = 2 and $subcategory = 52) { header("Location: http://www.vanderbilt.edu/register/ca/vacation_rentals.php"); } elseif ($category = 2 and $subcategory = 50) { header("Location: http://www.vanderbilt.edu/register/ca/rentals.php"); } , etc. for some reason all the elseifs are going to the if header. any input as to how i can correct this is greatly appreciated. thank you again. addison -- Addison Ellis small independent publishing co. 114 B 29th Avenue North Nashville, TN 37203 (615) 321-1791 addison@bellsouth.net info@smipco.com subsidiaries of small independent publishing co. info@gloabaldog.com info@momandpocentral.com

« previous php.db (#24996) next »