load( $xmlFile ); $allOutputs = $doc->getElementsByTagName("particleDeclarationParam"); print ''; # NOW READ IN EACH OF THE SIMULATOR PARAMETERS, CREATING AN ARRAY FOR EACH foreach($allOutputs as $param) { $paramName = $param->getElementsByTagName("name")->item(0)->nodeValue; $paramUnit = $param->getElementsByTagName("unit")->item(0)->nodeValue; print $paramUnit."
"; $_SESSION["particles".$paramName] = array(); array_push($_SESSION["particleParamNames"],$paramName); array_push($_SESSION["particleParamUnits"],$paramUnit); array_push($_SESSION["particleParamArrays"],$_SESSION["particles".$paramName]); } } header('Location: AddParticles.php') ; ?>