mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(legacy) accept initial form values via get
This commit is contained in:
parent
9773d9ddc4
commit
6c0e84ccb5
@ -38,7 +38,9 @@ $cmd_action = false;
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// set form defaults
|
||||
$pconfig = array();
|
||||
$pconfig['count'] = 3;
|
||||
$pconfig['count'] = isset($_GET['count']) ? $_GET['count'] : 3;
|
||||
$pconfig['host'] = isset($_GET['host']) ? $_GET['host'] : null;
|
||||
$pconfig['interface'] = isset($_GET['interface']) ? $_GET['interface'] : null;
|
||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
// validate formdata and schedule action
|
||||
$pconfig = $_POST;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user