You should read up on and use arrays. Cutting down on the echo statements and not escaping in and out of php constantly will give you cleaner (easier to maintain and read) code. Here's a start:
$item_arr = array('Home', 'About Us', 'Forums', 'Gallery', 'Links',
'temp1', 'temp2', 'temp3', 'temp4', 'temp5', 'Join Us');
$html_string = '<div id="sidenavbar">' .
'<div class="sidenavarea">' .
'<ul class="sidenav">';
foreach ($item_arr as $item) {
$link = $item;
$html_string .= '<li><a href="' . $link . '.php" title="' .
$link . '"> ' . $link . '</a></li>';
}
$html_string .= '</ul></div></div>';
echo $html_string;
Also, never use short opening tags ("<?"). Use "<?php".