agabriel wrote:
Don't use LS to update DB, a clean php file receving {SAVEDID} is better i think.
yourscript just update answers in the survey table of the database srid is the "Textes complets id" of the line.
You can control if $_SESSION is open and is the srid is OK before updating it.
Denis
But my problem is triggering this link http://domainname/surveys/index.php?sid=XXXXXXlang=en&000000X0000X0000=yes // to update my datatable without navigating away from that page or visiting that link.
Then you need to doing it with an ajax call.Don't use LS to update DB, a clean php file receving {SAVEDID} is better i think.
jQuery.ajax({
type: 'GET',
url: 'http://www.example.com/yourscript.php',
data: {
srid: '{SAVEDID}'
}
});
yourscript just update answers in the survey table of the database srid is the "Textes complets id" of the line.
You can control if $_SESSION is open and is the srid is OK before updating it.
Denis