I am new in PHP. I have a file upload code. This code upload file and save it in Mysql db. In this code i use Two fields One is Date and Second is title. Date and Title is also stored in db when user click on submit button. I use Jquery in my code to pick current date and display calendar. My Jquery functionality is that In Date Field it display current date. When i change the date in Date Field it also automatically change the date in title field.
Here is my Problem.
I use session in my code and echo session variable in Title field. As i told above my Jquery functionallty. I face problem while changing date.
When i change date in Date field it does not display session variable data.
Here is pic without change in date
Here is pic after change in date 
I want that when i change date it also display all other variable data.
Here is my Session Code
<?php
// starts session
session_start();
// setting variable values during session
$_SESSION['UserName']='Saqib';
$_SESSION['TeamName']='MIT';
?>
Here is my file code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(document).ready(function() {
$("#mydate").datepicker({
dateFormat: "dd-M-y",
onSelect: function(dateText, inst) {
$("#dt_title input[type='text']").val($("#dt_title input[type='text']").attr('data-title')+dateText);
}
}).datepicker("setDate", new Date());
});
</script>
</head>
<body>
<form action="up_mb.php" method="POST" enctype="multipart/form-data">
<table width="547" class="tblbdr" >
<tr>
<td height="23" colspan="6" class="head"><p> Morning Briefing </p></td>
</tr>
<tr> <td height="10"></td></tr>
<tr><td class="celltext"><b>Date:</b> </td> <td><input name="mydate" type="text" id="mydate" style="width:200px"> </td></tr>
<tr>
<tr><td class="celltext"><b>Title: </b><br> </td>
<td class="celltext" style="width:200px" > <span id="dt_title"> <input name="title" type="text" value=" MB |
<?php session_start(); echo $_SESSION['UserName'];?> | <?php echo $_SESSION['TeamName'];?> | <?php echo date("d-M-y");?>"
data-title="MB | " style="width:200px"/> </span> </td> </tr>
</tr>
<td class="celltext"><b>Upload File:</b></td>
<td colspan="4" bordercolorlight="#006666">
<input type="file" name="myfile" id="myfile" width="100%" size=80/>
<!-- <input type="file" name="files[]" multiple style="width:300px"/> -->
</td></tr>
<td><input type="submit" value="Save"/> </td> <td> </td>
<td width="151">
</td>
<tr>
<td height="12">
</td>
<td width="290">
</td> </tr>
</table>
</form>
</body>
</html>

<tr>...</tr>and<td>...</td>tags in balance.