load( $xmlFile ); $allOutputs = $doc->getElementsByTagName("reactionParam"); print ''; # NOW READ IN EACH OF THE SIMULATOR PARAMETERS, CREATING AN ARRAY FOR EACH foreach($allOutputs as $param) { array_push($_SESSION["reactionParamNames"],getTagValue($param,"name")); array_push($_SESSION["reactionParamUnits"],getTagValue($param,"unit")); array_push($_SESSION["reactionParamOptions"],getTagValue($param,"options")); array_push($_SESSION["reactionParamType"],getTagValue($param,"type")); array_push($_SESSION["reactionParamDescription"],getTagValue($param,"description")); array_push($_SESSION["reactionParamDefault"],getTagValue($param,"default")); #$_SESSION["reaction".$paramName] = array(); #array_push($_SESSION["reactionParamArrays"],$_SESSION["reaction".$paramName]); } # Now we're also going to have an array for production or consumption of each of the solutes and particles # This makes processing much easier later on. $h=0; while($hgetElementsByTagName("kineticFactorParam"); foreach($allOutputs as $param) { $options = strtok(getTagValue($param,"options"), ","); while ($options !== false) { array_push($_SESSION["kineticFactors"],$options); $options = strtok(","); } } } header('Location: AddReaction.php') ; ?>