Hello,
I am following this page to embed a grid to a html
docs.dhtmlx.com/doku.php?id=dhtm … ntegration
But there’s no mentioning regarding how to set the name of the grid. So how do I retrieve the value on the php end using $_POST[‘what should I put here’]?
Filu82
August 27, 2011, 10:10am
#2
You can use the following code to see what is inside of the $_POST array:
<?php
echo "<PRE>";
print_r($_POST);
echo "</pre>";
?>
Yes I tried. Nothing showed up. The grid content seems get ignored through the post.
And I used firebug to inspect the on the grid, they don’t even have a name.
Filu82
August 28, 2011, 4:11pm
#4
Here is the sample to the form integration:
dhtmlx.com/docs/products/dht … _form.html
Did you load the “dhtmlxgrid_form.js” on your page and open the tag before the div box from your grid and close it after?
Thank you Filu82. But I loaded the whole dhtmlx.js from the Pro Suite and made sure the div box is inside of the tag.
I actually also have built a more complex form with inputs, combo boxes, dropdowns, editor and grid.
Weird thing is text inputs and combos’s data is in the $_POST array while editor and grid are not.
OK I figured it out. It’s my bad. Apparently the grid only posts data that changed.
Now I still have the issue that my editor element doesn’t post data…
Olga
August 30, 2011, 9:12am
#7
You should close cell’s editor before sending form to the server side:
mygrid.editStop();