1.
If isset($_SESSION['id']) is false, your call to header() will never happen.
Add the following right below your call to session_start():
if (!isset($_SESSION['id']))
{
die("id is not set");
}
Save it and run it. If you get the "id is not set" message then there is your answer.
2.
If isset($_POST['starbaseName']) is false then $done will never get set...
So try declaring $done right below your two include statements:
$done = '';
That will ensure that $done has been declared when the script gets to
header ('Location: starbaseName.php?str='.$done.'!');
3.
Also, just so you know, the following isn't going to work like you want it to:
$done = "Starbase ".$starbaseName." Renamed To ".$starbaseName;
Your using the same variable for the old and the new value.
Let us know if you can't figure it out.