Commit 6c0e84cc authored by Ad Schellevis's avatar Ad Schellevis

(legacy) accept initial form values via get

parent 9773d9dd
...@@ -38,7 +38,9 @@ $cmd_action = false; ...@@ -38,7 +38,9 @@ $cmd_action = false;
if ($_SERVER['REQUEST_METHOD'] === 'GET') { if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// set form defaults // set form defaults
$pconfig = array(); $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') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
// validate formdata and schedule action // validate formdata and schedule action
$pconfig = $_POST; $pconfig = $_POST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment