RE: elseif with header

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

 



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:  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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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

  Powered by Linux