ehsan Posted August 30, 2012 Report Share Posted August 30, 2012 Hi every body i have problem to save datepicker jquery to php form and after it save in databse, it's code of datepicker <script type="text/javascript"> $(function() { $('#datepicker0').datepicker(); }); ----------------- it's my form <form method ="post" action = "dateprocess.php"> <input type="text" id="datepicker" /> <input type="button" name="button" id="button" value="check" onclick="javascript:alert(this.form.datepicker0.value);"/> ----------------------------------------------- I can see my datepicker resault in my message but i dont know how send it to php variable or data base Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted August 30, 2012 Report Share Posted August 30, 2012 You could do something like this and incorporate JS in PHP to save it as a php variable. Then you will have to learn setting up a database and adding it to it by yourself. Their is some good tutorials on it. <script> <?php $datepicker = this.form.datepicker0.value; ?> </script Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.