Hi
I am a beginner in dhtmx, I try to use this form
var filtredate = new dhx.Form(“filtre_container”, {
cols: [
{
type: “datepicker”,
label: "Début: ",
labelInline: true,
labelWidth: “50px”,
width :“150px”,
date:“20/02/20”,
name: “debut”
},
{
type: “datepicker”,
label: "Fin: “,
labelInline: true,
labelWidth: “50px”,
width :“150px”,
name: “fin”
}
]
});
filtredate.events.on(“Change”, function(id,e){
if(id == “fin”)
{
this.send(“index.php”, “POST”);
alert(” “+id+” : "+e);
}
});
to send data to server. But there is no way to use the data in server side in PHP, I try to display the $_REQUEST and $_POST, but it return null value.
In the console of broswer, the values send is display very well, but in my web page php script , the echo ‘<pre>’; print_r($_POST); echo ‘</pre>’; return NULL
What can i do to send entire my index.php when I send the form
I’d love to help but I don’t have idea about your UI. Can you post a screenshot what is your index is.
If this is a grid with date filter. I suggest you clear the grid and replace it with the new data return by your server.
I usually do this. See below.
form.send('ajax.php', 'post', function(loader, result){
grid.clearlAll();
grid.parse(result, "json");
// take not result is already filtered based on the date range value.
});