I think this is right......
You had variables inside "" etc.....
if
((isset($REQUEST['year'])) && (isset($REQUEST['month']))){
$lastdate = date ("Y m",mktime(0,0,0,$REQUEST['month']-1 ,date("d") ,$REQUEST['year']) );
$nextdate = date ("Y m",mktime(0,0,0,$REQUEST['month']+1 ,date("d") ,$REQUEST['year']));
$currentdate = date ("Y m",mktime(0,0,0,$REQUEST['month'] ,date("d") ,$REQUEST['year']));
$lastmonth = date ("m" ,mktime(0,0,0,$REQUEST['month']-1 ,date("d") ,$REQUEST['year']) );
$nextmonth = date ("m" ,mktime(0,0,0,$REQUEST['month']+1 ,date("d") ,$REQUEST['year']));
$currentmonth = date ("m" ,mktime(0,0,0,$REQUEST['month'] ,date("d") ,$REQUEST['year']));
$lastyear = date ("Y" ,mktime(0,0,0,$REQUEST['month']-1 ,date("d") ,$REQUEST['year']) );
$nextyear = date ("Y" ,mktime(0,0,0,$REQUEST['month']+1 ,date("d") ,$REQUEST['year']));
$currentyear = date ("Y" ,mktime(0,0,0,$REQUEST['month'] ,date("d") ,$REQUEST['year']));
}
else
{
$lastdate = date ("Y m",mktime(0,0,0,date("m")-1 ,date("d") ,date("Y")));
$nextdate = date ("Y m",mktime(0,0,0,date("m")+1 ,date("d") ,date("Y")));
$currentdate = date ("Y m",mktime(0,0,0,date("m") ,date("d") ,date("Y")));
$lastmonth = date ("m" ,mktime(0,0,0,date("m")-1 ,date("d") ,date("Y")));
$nextmonth = date ("m" ,mktime(0,0,0,date("m")+1 ,date("d") ,date("Y")));
$currentmonth = date ("m" ,mktime(0,0,0,date("m") ,date("d") ,date("Y")));
$lastyear = date ("Y" ,mktime(0,0,0,date("m")-1 ,date("d") ,date("Y")));
$nextyear = date ("Y" ,mktime(0,0,0,date("m")+1 ,date("d") ,date("Y")));
$currentyear = date ("Y" ,mktime(0,0,0,date("m") ,date("d") ,date("Y")));
}
echo "<table border='0' width='100%'><tr><td width='33%'><p align='left'><a href=".$SERVER['PHP_SELF']."?month=".$lastmonth."&year=".$lastyear.">Vorige maand</a></td>";
echo "<td width='33%'><p align='center'><a href=".$SERVER['PHP_SELF']."?month=".$currentmonth."&year=".$currentyear.">$currentmonth $currentyear</a></td>";
echo "<td width='33%'><p align='right'><a href=".$_SERVER['PHP_SELF']."?month=".$nextmonth."&year=".$nextyear.">Volgende maand</a></td></tr></table>";