|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
php with xml help
iam working with php and xml.
i have sent xml from javascript using follwing code send(objxmldoc.xml); i dont kwn howe to retrieve in php page i have to laod the xml which is sent from javascript. i have used $doc-> load($_request) its giving error only strign is allowed in asp i have doen the same suign the foillowing coed objxmldoc->loadxml(Request) iam new to xml and php so anyone if u knw this plz help me |
|
#2
|
||||
|
||||
|
What does your javascript code look like?
Is your file being uploaded from a form? $_REQUEST is an array for the POST and GET variables. $doc->load($_REQUEST) would be passing the entire array to the load() function... it soundsl ike your load() function is expecting a string, thus causing the error. What is your $doc variable type? You might want to try: print_r($_REQUEST) print_r($doc) |
|
#3
|
|||
|
|||
|
this is the coding in javascript from previous page
objPoster = new ActiveXObject("MSXML2.XMLHTTP.3.0"); with (objPoster) //gets contacts { open("POST", "SelectCamps.php", false); send(objXMLDoc.xml); } in selectcamps.php i have written like this //my doc type is $doc1 = DOMDocument::load($_POST) |
|
#4
|
||||
|
||||
|
Ah, I didn't realize you were using XMLHTTP Request objects.
I don't have much experience with this. I wouldn't mind learning... I might look this up myself in a couple days... in the meantime, anyone else feel free to answer the question |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php with xml help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|