elseif with header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux