This is my Jquery:
var data = '[sh][co][img]';
$.post('../php/forms/postdata.php?type=imgadder&c='+code+'&part=partone', 'partone=' + data, function (response) {
$('#body-text').insertAtCaret(response);
});
var datatwo = ''+linko+'[s][/s][/img][ctr][/ctr][/co][/sh]';
$.post('../php/forms/postdata.php?type=imgadder&c='+code+'&part=parttwo', 'parttwo=' + datatwo, function (response) {
$('#body-text').insertAtCaret(response);
});
I get an error "Undefined Index Error" but the index exists, because it prints correctly!
Why is this error message showing when the variable exists?
$partone = e($_POST['parto']);
$parttwo = e($_POST['partt']);