Hi;
How manage in PHP when several users would like to modify the same form (web page) in disconnection mode ?
If I lock (via MySql) the form, so if the user close web browser => which solution ?
Have you a solution to resolve the complex problem in PHP ?
Best regards;
optimistic locking in PHP
Moderator: General Moderators
Do I understand you correctly in that you want to have PHP handle form-input when the users are offline?
If that's so, you'll need a connection to the server at some point, otherwise PHP can't handle the form-input. You can users simply have fill out the form and submit to php-script which does everything you'd need (e.g. email it to someone, update the database etc.).
Or you could use javascript to create an email based on the form input, in which case you'll need to buffer the form-submit.
Parsing that email with PHP is not the easiest way, but it's not too difficult.
Generally, at some point the users will need to be online to submit the data, otherwise PHP can't handle it.
If that's so, you'll need a connection to the server at some point, otherwise PHP can't handle the form-input. You can users simply have fill out the form and submit to php-script which does everything you'd need (e.g. email it to someone, update the database etc.).
Or you could use javascript to create an email based on the form input, in which case you'll need to buffer the form-submit.
Parsing that email with PHP is not the easiest way, but it's not too difficult.
Generally, at some point the users will need to be online to submit the data, otherwise PHP can't handle it.