I’ve been following the tutorial @ http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-day-8-ajax/?search_index=9
unfortunately my url is being returned with disallowed characters,
Error string: php_echo_site_url(\‘site/post_ticket\’);_?>Disallowed Key Characters.
I understand that codeigniter has several XSS filters for security and most of the suggestions I’ve found for dealing with disallowed characters suggest hacks for turning this off completely or allowing additional characters… my gut feeling is that is not a “best practice”. One post sugest it may be the greater than & less than symbols for php. Specifically I need suggestions for the line that sets the URL. Thanks & Happy New Years! (especiallly to those still working on code while every one else is out partying…)
function openNewTkt() {
var form_data = {
property_manager: $('#property_manager').val(),
property_ID: $('#property_ID').val(),
property_name: $('#property_name').val(),
date_posted: $('#date_posted').val(),
value: $('#spinner').val(),
ajax: '1'
};
$.ajax({
url: "<?php echo site_url('site/post_ticket'); ?>",
type: 'POST',
data: form_data,
success: function(msg) {
$('#main_content').html(msg);
}
});
return false;
}