Im building an application using codeigniter which uses some ajax.
Here is the ajax call I am making
$.ajax({
type: 'get',
url: '<?php echo base_url(); ?>index.php/booking/addDriver',
data: '/1/2/',
beforeSend: function() {
},
success: function() {
dragged.parentNode.removeChild(dragged);
}
});
From this I want to generate the URL
http://localhost/TaxiBooking/index.php/booking/addDriver/1/2/
However it keeps generating
http://localhost/TaxiBooking/index.php/booking/addDriver?/1/2/
The URL part of the AJAX keeps adding the ? mark at the end which is not required for codeigniter and brakes the call
Anyone know how I can stop the URL doing this
Thanks
Help

















