fredericenko
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by fredericenko
-
-
I need to save the text from input field to php variable called $id_date
-
I am using Jquery-ui's Date picker to pick what date I want. But now I need to store that date I type/pick from DatePicker into php variable. I tried doing this myself but it didn't work, It wasn't being saved in variable without pressing a button. Do I need to use Ajax? If yes, can you help me with that?
Thank you.
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script><input type="text" id="datepicker" name="datepicker" placeholder="Search by date" />
Save text from input field into php variable without pressing anything
in PHP
Posted
Yes, same page. I need that variable so I can filter out table rows from DB tables (mysql). (You know, SELECT * FROM table WHERE $id_text ...) And I wanted to make it instant, so when somebody write down or picks a date, it will instantly filter those tables. For that I need that value (text) from input text box to be stored in php variable.