<?php
//	File name of exported XML
$filename = $_POST["filename"];

//	Creator Metadata Variables
$creator = $_POST["creator"];
$creatorurl = $_POST["creatorurl"];
$contactname = $_POST["contactname"];
$contactemail = $_POST["contactemail"];
$contacttelephone = $_POST["contacttelephone"];
$contactaddress = $_POST["contactaddress"];
$contactcity = $_POST["contactcity"];
$contactstateprovince = $_POST["contactstateprovince"];
$contactpostalcode = $_POST["contactpostalcode"];
$contactcountry = $_POST["contactcountry"];
$rights = $_POST["rights"];

//	Content Metadata Variables
$title = $_POST["title"];
$headline = $_POST["headline"];
$description = $_POST["description"];
$subjectcategory = explode(',', $_POST['hiddensubjectcategory']);
$subjectname = $_POST["subjectname"];
$distance = array ( $_POST["distance1"], $_POST["distance2"] );
$distancenotes = $_POST["distancenotes"];
$referenceurl = $_POST["referenceurl"];
$credit = $_POST["credit"];
$date = $_POST["date"];
$id = $_POST["id"];
$type = $_POST["type"];
$imageproductquality = $_POST["imageproductquality"];

//	Observation Metadata Variables
$facility = array ( $_POST["facility1"], $_POST["facility2"], $_POST["facility3"], $_POST["facility4"], $_POST["facility5"], $_POST["facility6"], $_POST["facility7"], $_POST["facility8"], $_POST["facility9"], $_POST["facility10"] );
$instrument = array ( $_POST["instrument1"], $_POST["instrument2"], $_POST["instrument3"], $_POST["instrument4"], $_POST["instrument5"], $_POST["instrument6"], $_POST["instrument7"], $_POST["instrument8"], $_POST["instrument9"], $_POST["instrument10"] );
$spectralcolorassignment = array ( $_POST["spectralcolorassignment1"], $_POST["spectralcolorassignment2"], $_POST["spectralcolorassignment3"], $_POST["spectralcolorassignment4"], $_POST["spectralcolorassignment5"], $_POST["spectralcolorassignment6"], $_POST["spectralcolorassignment7"], $_POST["spectralcolorassignment8"], $_POST["spectralcolorassignment9"], $_POST["spectralcolorassignment10"] );
$spectralband = array ( $_POST["spectralband1"], $_POST["spectralband2"], $_POST["spectralband3"], $_POST["spectralband4"], $_POST["spectralband5"], $_POST["spectralband6"], $_POST["spectralband7"], $_POST["spectralband8"], $_POST["spectralband9"], $_POST["spectralband10"] );
$spectralbandpass = array ( $_POST["spectralbandpass1"], $_POST["spectralbandpass2"], $_POST["spectralbandpass3"], $_POST["spectralbandpass4"], $_POST["spectralbandpass5"], $_POST["spectralbandpass6"], $_POST["spectralbandpass7"], $_POST["spectralbandpass8"], $_POST["spectralbandpass9"], $_POST["spectralbandpass10"] );
$spectralcentralwavelength = array ( $_POST["spectralcentralwavelength1"], $_POST["spectralcentralwavelength2"], $_POST["spectralcentralwavelength3"], $_POST["spectralcentralwavelength4"], $_POST["spectralcentralwavelength5"], $_POST["spectralcentralwavelength6"], $_POST["spectralcentralwavelength7"], $_POST["spectralcentralwavelength8"], $_POST["spectralcentralwavelength9"], $_POST["spectralcentralwavelength10"] );
$spectralnotes = $_POST["spectralnotes"];
$temporalstarttime = array ( $_POST["temporalstarttime1"], $_POST["temporalstarttime2"], $_POST["temporalstarttime3"], $_POST["temporalstarttime4"], $_POST["temporalstarttime5"], $_POST["temporalstarttime6"], $_POST["temporalstarttime7"], $_POST["temporalstarttime8"], $_POST["temporalstarttime9"], $_POST["temporalstarttime10"] );
$temporalintegrationtime = array ( $_POST["temporalintegrationtime1"], $_POST["temporalintegrationtime2"], $_POST["temporalintegrationtime3"], $_POST["temporalintegrationtime4"], $_POST["temporalintegrationtime5"], $_POST["temporalintegrationtime6"], $_POST["temporalintegrationtime7"], $_POST["temporalintegrationtime8"], $_POST["temporalintegrationtime9"], $_POST["temporalintegrationtime10"] );
$datasetid = array ( $_POST["datasetid1"], $_POST["datasetid2"], $_POST["datasetid3"], $_POST["datasetid4"], $_POST["datasetid5"], $_POST["datasetid6"], $_POST["datasetid7"], $_POST["datasetid8"], $_POST["datasetid9"], $_POST["datasetid10"] );

// Coordinate Metadata Variables
$spatialcoordinateframe = $_POST["spatialcoordinateframe"];
$spatialequinox = $_POST["spatialequinox"];
$spatialreferencevalue = array ( $_POST["spatialreferencevalue1"], $_POST["spatialreferencevalue2"] );
$spatialreferencedimension = array ( $_POST["spatialreferencedimension1"], $_POST["spatialreferencedimension2"] );
$spatialreferencepixel = array ( $_POST["spatialreferencepixel1"], $_POST["spatialreferencepixel2"] );
$spatialscale = array ( $_POST["spatialscale1"], $_POST["spatialscale2"] );
$spatialrotation = $_POST["spatialrotation"];
$spatialcoordsystemprojection = $_POST["spatialcoordsystemprojection"];
$spatialquality = $_POST["spatialquality"];
$spatialnotes = $_POST["spatialnotes"];
$spatialfitsheader = $_POST["spatialfitsheader"];
//$spatialcdmatrix = array ( $_POST["spatialcdmatrix1"], $_POST["spatialcdmatrix2"], $_POST["spatialcdmatrix3"], $_POST["spatialcdmatrix4"] );


//	Publisher Metadata Variables
$publisher = $_POST["publisher"];
$publisherid = $_POST["publisherid"];
$resourceid = $_POST["resourceid"];
$resourceurl = $_POST["resourceurl"];
$relatedresources = array ( $_POST["relatedresources1"], $_POST["relatedresources2"], $_POST["relatedresources3"], $_POST["relatedresources4"], $_POST["relatedresources5"], $_POST["relatedresources6"], $_POST["relatedresources7"], $_POST["relatedresources8"], $_POST["relatedresources9"], $_POST["relatedresources10"] );
$metadatadate = $_POST["metadatadate"];
$metadataversion = $_POST["metadataversion"];

?>
