To give more than one parameter to php you need something like
job.download2("http://domain.tld:8080/stunden/b4a.php", Array As String( _
"action", Query, _
"personID", personID, _
"filter", filter _
))
and in php then
if (isset($_REQUEST['action'])){$action=StrToLower(trim($_REQUEST['action']));} else {$action="";}
if (isset($_REQUEST['personID'])){$personID=trim($_REQUEST['personID']);} else {$personID="";}
$q = mysql_query("SELECT username, surname FROM users WHERE userid=".$personID.";");
Assuming personID is an INT-Value you better can use
if (isset($_REQUEST['personID'])){$personID=intval(trim($_REQUEST['personID']));} else {$personID=0;}
to prevent that $personID is a string (whatever it´s content is)
IntVal return an int. if the given $_REQUEST['personID'] is for example "test" (or any other that is not an int) intval will return 0