how to display value of session variable in textbox in php
<p>in my project I need to take the value of selected link from one page to another page and it should be display in the textbox.</p>

<p>for this i have used session variable code is as below :</p>

<p>in caledar.php</p>

<p>This is not the entire script ... there is one class which generates the calendar code. below is the function. </p>

<pre><code>function getDateLink($day, $month, $year)
        {
            // Only link the first day of every month
            $link = "";
            if ($day)
            {
                $selectedDate = $day.$month.$year;
                var_dump($selectedDate);die;
                //session_register("$selectedDate");
                //session_start();

                if (isset($_GET["selectedDate"]))
                $_SESSION['date'] = $selectedDate;

                //("location:login_sucessful.php");

                $link = "Leave_app.php";
            }
            return $link;
    }
</code></pre>

<p>in application.php</p>

<pre><code>&lt;input type="text" id="Editbox1" name="strt_date" value="&lt;?PHP
if(isset($_SESSION['date'])){echo $selectedDate;}?&gt;"&gt;
</code></pre>

<p>It is not working. also not receiving any error message.</p>
