Welcome Guest, Not a member yet? Register   Sign In
Datepicker and inserting to DB
#3

[eluser]noideawhattotypehere[/eluser]
Code:
$( "#fromDate" ).datepicker({
                    dateFormat: "yy-mm-dd",
                    onClose: function(selectedDate) {
                        $("#toDate").datepicker("option", "minDate", selectedDate);
                    }
                });
                $( "#toDate" ).datepicker({
                    dateFormat: "yy-mm-dd",
                    onClose: function(selectedDate) {
                        $("#fromDate").datepicker("option", "maxDate", selectedDate);
                    }        
                });

Code:
echo form_open('controller_name_which_you_didnt_say_so_i_type_stupid_things/bookings', $attributes); ?>

And your controller function which you submit to (bookings) cant be private, they are not accessible via url.


Messages In This Thread
Datepicker and inserting to DB - by El Forum - 11-21-2013, 03:34 AM
Datepicker and inserting to DB - by El Forum - 11-21-2013, 06:27 AM
Datepicker and inserting to DB - by El Forum - 11-21-2013, 06:32 AM
Datepicker and inserting to DB - by El Forum - 11-21-2013, 10:31 AM
Datepicker and inserting to DB - by El Forum - 11-22-2013, 05:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB