forked from science-ation/science-ation
Update registration forms received
This commit is contained in:
parent
76a0381b26
commit
c25b776eb1
@ -23,6 +23,17 @@
|
|||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
|
function setRegistrationFormsReceived($reg_id = ''){
|
||||||
|
global $pdo;
|
||||||
|
if ($reg_id)
|
||||||
|
$rid = $reg_id;
|
||||||
|
else
|
||||||
|
$rid = $_SESSION['registration_id'];
|
||||||
|
$q = $pdo->prepare('UPDATE registrations set status = "complete" WHERE id=?');
|
||||||
|
$q->execute([$rid]);
|
||||||
|
}
|
||||||
|
|
||||||
function registrationFormsReceived($reg_id = '')
|
function registrationFormsReceived($reg_id = '')
|
||||||
{
|
{
|
||||||
global $pdo;
|
global $pdo;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
<?
|
<?
|
||||||
include 'data/config.inc.php';
|
include 'data/config.inc.php';
|
||||||
|
include 'register_participants.inc.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="https://cdn.docuseal.com/js/form.js"></script>
|
<script src="https://cdn.docuseal.com/js/form.js"></script>
|
||||||
@ -13,7 +14,7 @@ include 'data/config.inc.php';
|
|||||||
</docuseal-form>
|
</docuseal-form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.docusealForm.addEventListener('completed', (e) => e.detail)
|
window.docusealForm.addEventListener('completed', setRegistrationFormsReceived)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user