Just need some really basic help..
Posted: Tue May 20, 2003 12:37 pm
Okay, im designing a webpage which has some links at the top that go to different parts of the page. One link would goto Index.php?p=News and one to Index.php?p=Join Ill be adding more but this is all i need for right now. Here is my code:
But this is giving me an error.. What am i doing wrong with the if statements? And also, this PHP is placed in the middle of an HTML document where the text is suppost to show up, is that okay to do?
Code: Select all
<?php
$p = News
if($p == News) {
echo
" NEWS";
} else {
}
if($p == Join) {
echo
" JOIN";
} else {
}
?>
?>