ehsan Posted August 30, 2012 Report 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
benjaminmorgan Posted August 30, 2012 Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now