How to display date in next page?
<p>I really need some help about how to pass returndate value in next page(save.php). the value that i cant' pass was under this "(input type='hidden' name='retDate[$i]' value='$retDate')". 
I'm using calendar datepicker at this website(http://www.triconsole.com/php/calendar_datepicker.php). Appreciate if someone can help me about this and do refer below for my coding.</p>

<p>under "result.php"</p>

<pre><code>&lt;body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;&lt;/br&gt;
    &lt;h1&gt;RESULT &lt;/h1&gt;
    &lt;p&gt;&lt;b&gt;Escalation Date : &lt;/b&gt;
    &lt;?php echo $_POST["date1"] ?&gt; until &lt;?php echo $_POST["date2"] ?&gt;
    &lt;/p&gt;
    &lt;?php 
                 ......
            //Select database
            $selected = mssql_select_db($myDB, $link)
            or die("Couldn't open database $myDB");

            //declare the SQL statement that will query the database
            $query = "SELECT....."; 

        //execute the SQL query and return records
        if ($result = mssql_query($query, $link)){
            echo "&lt;form name='form1' method='post' action='save.php'&gt;";
            echo "&lt;table border='1'&gt;
            &lt;tr&gt;
            &lt;th&gt;batch_exception_id&lt;/th&gt;
            &lt;th&gt;batch_id&lt;/th&gt;
            &lt;th&gt;process_date_time&lt;/th&gt;
            &lt;th&gt;Return Date&lt;/th&gt;
            &lt;/tr&gt;";
            $i=0;
            while ($row = mssql_fetch_assoc($result)) {   
                $rDate = $row['ReturnDate'];
                $beID = $row['batch_exception_id'];                         
                $proc_dt = $row['process_date_time'];
                echo "&lt;tr&gt;";
                echo "&lt;td&gt;" . $beID . "&lt;input type='hidden' name='beID[$i]' value='$beID'/&gt;&lt;/td&gt;";
                echo "&lt;td&gt;" . $row['batch_id'] . "&lt;/td&gt;";
                echo "&lt;td&gt;" . $proc_dt . "&lt;input type='hidden' name='procDT[$i]' value='$proc_dt'/&gt;&lt;/td&gt;";

                if($rDate == ""){
                    echo "&lt;td&gt;";    
                            $f_name="retDate[".$i."]";    
                    $myCalendar = new tc_calendar($f_name, true, false);      
                    $myCalendar-&gt;setIcon("calendar/images/iconCalendar.gif");     
                    $myCalendar-&gt;setDate(date('d'), date('m'), date('Y'));    
                    $myCalendar-&gt;setPath("calendar/");    
                    $myCalendar-&gt;setYearInterval(2000, 2020);     
                    $myCalendar-&gt;dateAllow('2000-01-01', '2020-01-01');   
                    $myCalendar-&gt;setDateFormat('j F Y');      
                    $myCalendar-&gt;setAlignment('left', 'bottom');      
                    //$myCalendar-&gt;setSpecificDate(array("", "0", "0"), 0, 'year');   
                    //$myCalendar-&gt;setSpecificDate(array("0", "0"), 0, 'month');      
                    //$myCalendar-&gt;setSpecificDate(array("0"), 0, '');    
                    $myCalendar-&gt;writeScript();
                    echo "&lt;input type='hidden' name='retDate[$i]' value='$retDate'/&gt;";
                    //echo "&lt;input type='hidden' name='retDate[$i]' value='".$myCalendar-&gt;getDate()."'/&gt;";    
                    $i++;       
                    echo "&lt;/td&gt;";
                } else {
                    echo "&lt;td&gt;" . $rDate . "&lt;/td&gt;";
                }
                echo "&lt;/tr&gt;";       
            }           

            echo "&lt;/table&gt;&lt;br/&gt;";
            echo "&lt;input type='button' value='&lt;&lt;' onclick='history.back(-1)'/&gt;";
            echo "&lt;input type='hidden' name='total_rec' value='$i'/&gt;";          
            echo "&lt;input type='submit' value='Save'/&gt;";         
            echo "&lt;input type='button' value='Print' onclick='window.print()'/&gt;";
            echo"&lt;/form&gt;";
        }

        //close the connection
        mssql_close($link);     
    ?&gt;&lt;br/&gt;                 
&lt;/body&gt;
</code></pre>

<p></p>

<p><img src="http://i.stack.imgur.com/J4tNk.png" alt="enter image description here"></p>

<p>under "save.php"</p>

<pre><code>&lt;body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;&lt;/br&gt;       
    &lt;?php 
        //$ReturnDate = $_POST["rDate"];
        $arrbeID = $_POST["beID"];
        $tot_rec = $_POST["total_rec"];
        $arrprocDT = $_POST["procDT"]; 
        $arrretDate = $_POST["retDate"]; 

        for ($i=0; $i&lt;$tot_rec;$i++) {
            echo "Batch Esc. ID: ".$arrbeID[$i]." 
                | Proc. DateTime: ".$arrprocDT[$i]."
                | Ret. Date: ".$arrretDate[$i]."
                &lt;br&gt;";
        }       

    ?&gt;&lt;br/&gt;
&lt;/body&gt;
</code></pre>

<p>
<img src="http://i.stack.imgur.com/I6GAK.png" alt="enter image description here"></p>
