Jump to content

Recommended Posts

<html>

<head>

<link rel="stylesheet" href="css/jquery-ui.css">

<script src="js/jquery-1.9.1.js"></script>

<script src="js/jquery-ui.js"></script>

 

<script type="text/javascript">

 

$(document).ready(function() {

$("#from").datepicker();

$("#to").datepicker();

var from=$("#from").val();

var to=$("#to").val();

    $("#btn").click(function() {

$("#datecheck").load("date2.php",{from:from,to:to},function(res){});

});

});

   

</script>

 

</head>

<body>

<form action="#" method="post">

From:<input type="text" id="from" name="from"/>

To: <input type="text" id="to" name="to"/>

<input type="button" value="submit" id="btn"/>

</form>

<div id="datecheck"></div>

</body>

</html>

 

 

//php code

 

$from=$_POST['from'];

echo $from;

 

 

i am not getting the date value when i echoed in the same page.

please any help.

thanks in advance.
Edited by Mahesh1209
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.