note 17668 added to language.variables.predefined

From: Date: Wed, 19 Dec 2001 02:09:08 +0000
Subject: note 17668 added to language.variables.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-23318@lists.php.net to get a copy of this message
If you want to use PHP with the XMLHTTP if you want to look at the XML data that is posted you MUST set the content-type header, when you send with XMLHTTP. The example below will put the xml data in $HTTP_RAW_POST_DATA. Example in your webpage: xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlHttp.open("POST", "some_script.php", true); xmlHttp.setRequestHeader("Accept","text/xml"); // if you dont set this you can't read the xml // data that is submited: xmlHttp.setRequestHeader("Content-Type","text/xml"); -- http://www.php.net/manual/en/language.variables.predefined.php http://master.php.net/manage/user-notes.php?action=edit+17668 http://master.php.net/manage/user-notes.php?action=delete+17668 http://master.php.net/manage/user-notes.php?action=reject+17668

« previous php.notes (#23318) next »