update
This commit is contained in:
parent
add6a67a79
commit
c0fbc53920
|
|
@ -38,6 +38,7 @@ if (isset($_POST['submit'])) {
|
||||||
$data_to_save[$field] = $_POST[$field] ?? '';
|
$data_to_save[$field] = $_POST[$field] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($errors))
|
||||||
file_put_contents($json_file, json_encode($data_to_save, JSON_PRETTY_PRINT));
|
file_put_contents($json_file, json_encode($data_to_save, JSON_PRETTY_PRINT));
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
@ -138,5 +139,4 @@ function getValue($data, $key)
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<?php include 'footer.php'; ?>
|
<?php include 'footer.php'; ?>
|
||||||
Loading…
Reference in New Issue