0

I have written a code in jquery where I am gettin two values inserted from two input boxes.

<script type="text/javascript">    
    $(document).ready(function(){
        $("input").change(function(){
            var startDate = $("#start-date").val();
            var endDate = $("#end-date").val();
            $(".rentdate").html("Rental Date<span> From:"+startDate+" To:"+endDate);

        });
    });    
</script>

I want to pass the values of the query varables startDate and endDate into php variables in the same page to be insertd into database with other values and display it in the same page ?

Brett Gregson
  • 5,867
  • 3
  • 42
  • 60

0 Answers0