Hi,
I am trying to receive an XML string (XML document) via POST to a script that turns it into an array.
It works fine when I call the XML file from a fixed location. However I cant seem to receive it when it is posted via a Form!
BASIC FORM TO SEND XML:
<html>
<head>
<title>Send XML Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="POST" action="XML_to_array4.php">
<p>
<textarea name="contents" cols="100" rows="15"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
PHP CODE THAT RETRIEVES XML THAT WAS POSTED:
$contents = $_POST['contents'];
//echo($contents);
$data = GetXMLTree ($contents);
Do I have to do something with the XML data before passing it to my function?
Any help would be much appreciated.
GiantComm...