Calendar event problems

Posted by Marin on Stack Overflow See other posts from Stack Overflow or by Marin
Published on 2010-05-23T09:37:05Z Indexed on 2010/05/23 9:40 UTC
Read the original article Hit count: 369

Filed under:

Goodmorning everybody! Can you please help me? I have a problem with this part of the script:

$output = cal_top();
switch($action){
    case "add":
        include("includes/event.php");
        $output .= cal_event_form('add');
        break;
    case "delete":
        include("includes/delete.php");
        include('includes/viewdate.php');
        $del_error = cal_del();
        if($del_error!="") $output .= "<center><span class='failure'>$del_error</span></center><br>";
        $output .=  cal_display();
        break;
    case "modify":
        include("includes/event.php");
        $output .=  cal_event_form('modify');
        break;
    case "viewdate":
        include("includes/viewdate.php");
        $output .=  cal_display();
        break;
    case "viewevent":
        include("includes/viewevent.php");
        $output .=  cal_display();
        break;
    case "search":
        include("includes/search.php");
        $output .=  cal_search_form();
        break;
    case "submitevent":
        include('includes/eventsub.php');
        include('includes/viewdate.php');
        $sub_error = cal_submit_event();
        if($sub_error!="") $output .= "<center><span class='failure'>$sub_error</span></center><br>";
        $output .=  cal_display();
        $_SESSION['cal_action'] = "viewdate";
        break;
    case "admin":
        include('includes/admin.php');
        $output .= cal_adminsection();
        break;
    case "login":
        $_SESSION['cal_noautologin'] = 1;
        include('includes/login.php');
        $output .=  cal_login_page();
        break;
    case "logout":
        cal_logout();
        $_SESSION['cal_noautologin'] = 1;
        cal_clear_permissions();
        cal_load_permissions();

It shows me this errors:

Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php  on line 145
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 149
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 156
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 160
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 164
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 168
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 172
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 180
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 184
Notice: Undefined variable: action in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 189

Your help could be very helpful for me!Please Help me;)Thank you.

© Stack Overflow or respective owner

Related posts about php