I need to generate a html form with different hidden variables . However the "problem" is that there are a lot of variables .e.g
$siteId = getValue("siteId", $localurl);
$itemid = getValue("itemid", $localurl);
$bidqty = getValue("bidqty", $localurl);
$maxbid = getValue("maxbid", $localurl);
$lagoonemorebid = getValue("lagoonemorebid", $localurl);
$tokenstring = getValue("tokenstring", $localurl);
$usage = getValue("usage", $localurl);
$robotimage = getValue("robotimage", $localurl);
$ru = getValue("ru", $localurl);
$usergoal = getValue("usergoal", $localurl);
$reporting = getValue("reporting", $localurl);
$buyerLogging = getValue("buyerLogging", $localurl);
$runame = getValue("runame", $localurl);
$ruparams = getValue("ruparams", $localurl);
$PromoCode = getValue("PromoCode", $localurl);
... the above vars are just a few from the whole list . Basically I can generate the form manually with echo " form action=\"http://$domain/mailer/create.php\" name=\"create\" method=\"post\" /> input type=\"hidden\" name=\"random\" value=\"$random\" />but I was wondering if there is a "smart" technique to use foreach or some function to get all the variables and generate the form instead to write manually all the hidden inputs ...