No a byla by ukazka kodu a na jakem radku to hlasi ten "udenfined index"?
jQuery/Ajax:
....
$( "#createPDF" ).click(function(event) {
event.preventDefault();
var svg = document.getElementById("svg");
var svgElement = svg.contentDocument;
var svgpic = svgElement.getElementById("svg-g6e100");
var structureSVG = svgpic.outerHTML;
......
......
$.ajax({
type:'POST',
url: '/pdf/configuration-create-pdf.php',
data: { structureSVG: structureSVG }
..........
PHP:
$post_data = $_POST["structureSVG"];
//zkusil jsem take:
$post_data = isset($_POST["structureSVG"]) ? $_POST["structureSVG"] : "SVG not found";
Undefined Index: structureSVG in on line .....