mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 06:46:25 +02:00
Add re-populate form on submission error
This commit is contained in:
parent
d52db2e1d2
commit
7277f1e98d
11 changed files with 44 additions and 29 deletions
|
@ -13,6 +13,10 @@
|
|||
$_SESSION['csrf'] = str_shuffle(uniqid().uniqid());
|
||||
}
|
||||
|
||||
//Save previous $_POST for re-populate forms on validation errors
|
||||
$_SESSION['previous_http_post'] = $_SESSION['http_post'] ?? [];
|
||||
$_SESSION['http_post'] = $_POST;
|
||||
|
||||
//Routing current query
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue