Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7808599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:10:57+00:00 2026-06-02T03:10:57+00:00

I really need some help about how to pass returndate value in next page(save.php).

  • 0

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.

under “result.php”

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"></br>
    <h1>RESULT </h1>
    <p><b>Escalation Date : </b>
    <?php echo $_POST["date1"] ?> until <?php echo $_POST["date2"] ?>
    </p>
    <?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 "<form name='form1' method='post' action='save.php'>";
            echo "<table border='1'>
            <tr>
            <th>batch_exception_id</th>
            <th>batch_id</th>
            <th>process_date_time</th>
            <th>Return Date</th>
            </tr>";
            $i=0;
            while ($row = mssql_fetch_assoc($result)) {   
                $rDate = $row['ReturnDate'];
                $beID = $row['batch_exception_id'];                         
                $proc_dt = $row['process_date_time'];
                echo "<tr>";
                echo "<td>" . $beID . "<input type='hidden' name='beID[$i]' value='$beID'/></td>";
                echo "<td>" . $row['batch_id'] . "</td>";
                echo "<td>" . $proc_dt . "<input type='hidden' name='procDT[$i]' value='$proc_dt'/></td>";

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

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

        //close the connection
        mssql_close($link);     
    ?><br/>                 
</body>

enter image description here

under “save.php”

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

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

    ?><br/>
</body>

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:10:58+00:00Added an answer on June 2, 2026 at 3:10 am

    solution:-

    Put below sript under head in Result.php

        <link rel="stylesheet" title="Style CSS" href="cwcalendar.css" type="text/css" media="all" />
        <script type="text/javascript" src="calendar.js"></script>
    

    Add below code under body in Result.php

         $date="date[".$i."]"; 
    echo "<input type='text' name='date[$i]' id='$date' value=' ' onclick=\"fPopCalendar('".$date."')\">";  
    

    script reference:
    http://codetale.com/2009/06/21/javascript-calendar-widget-108/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm confused about how DQL works, and really need some help here. I have
I really need some help in Regular Expressions, i'm working on a function like
I really need some help with this as I have been trying to fix
We Really need some help on this one: We've Struggled with all the Apple
I'm new to java and really need some help. I created a command line
I'm new to MySQL so I really need some help with an issue I'm
I need some help in figuring a compiler error which is really driving me
I've some questions .. and I really need your help. I have an application.
I have decided that I really need to get some flowcharts for reverse engineering
I need some help. I have a UITableView that has cells that hold the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.