PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
include 'news.php';
include 'calendar.php';
if ($link == "news") {
echo 'this is where the news form would go';
}
else if ($link == "calendar") {
echo 'this is where the calendar form would go';
}
?>
tag added][/size]
Basically what happens is I have one page where records for news (news.php) and calendar (calendar.php) events are displayed on the page, there is a link to add a new calendar event or a new news item. From that link i pass the variable "configure.php?link=news" (for a new news item). When I pass this variable I want a form to be displayed at the bottom of the page. The variable gets passed ok but the if statement doesn't seem to get executed, any ideas? thanks.
if you do so you have to test thoroughly the value of $include or scripts you don't want to might be invoked. index.php?link=..%2F..%2Fnotwebspace%2Fscripts%2FdeleteEveryThing