Hey php'ers.
I'm struggling on a variable thing.
Code is.
<?php
//determines which board to post chat to...
if ($_GET['board'] == "chat") {
$board_cat == "chat" ;
} elseif ($_GET['board'] == "request") {
$board_cat == "request" ;
} else { $board_cat == "null" ; }
?>
<head>
<title>PHP</title>
</head>
<body>
<? echo "$board_cat" ?>
</body>
Does anybody have any idea why $board_cat isn't displaying echoing onto the screen?
(I want $board_cat to echo chat when ?board=chat, I want $board_cat to echo request when ?board=request and if ?board is something other than chat or request, i want $board_cat to echo null!
Can anyone plz help.
Cheers,
nicknax