473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

XML being passed to PHP via POST

I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.

Jul 17 '05 #1
2 1761

<se******@swbell.net> wrote in message
news:41*****************@news.dallas.sbcglobal.net ...
I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.

Hi,
not much help, but, add this to your page :-

echo '<pre>';
print_r($_POST);
echo '</pre>';

It won't help interpreting the data, but will do a recursive print to the
browser of all the post data. At leas then, you'll know what your dealing
with. Depending on the content of the post, you might also want to try :-

echo '<pre>';
print_r($GLOBALS);
echo '</pre>';

This will produce a lot of output, but you'll be able to inspect all data
sent to your page including session data etc. which is usefull for debugging
/ development.

HTH,
Martin
Jul 17 '05 #2
In article <41*****************@news.dallas.sbcglobal.net>, se******@swbell.net wrote:
I am using macromeda Flash to create anXML object which I pass to PHP.
I need to know how to recieve it into PHP so I can process it in PHP.
For now all I want to do is display the XML on the screen.

To start at the simplest point I am trying this:

$my_xml = $_POST;
echo $my_xml;

Of course all it echos is "Array"

If I have tried a few other things, but I am shooting in the dark.

Any help would be greatly appreciated.


With wrappers, $data = file_get_contents('php://input');

some thingies that might interest you:
http://www.amfphp.org/
http://ghostwire.com/resources/phpobject/

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Discenza | last post by:
I have a search page within an application I'm developing. The search page could have over a dozen variables passed to it, not through a POST or GET, just through the URL. Is there something as...
1
by: David E | last post by:
Hi, I have an asp application that I install on quite a few different servers. omally this works fine and I have never had a serious issue with it untill today. I installed the site in the...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
5
by: Francis Bell | last post by:
I just found that my fin stream is not getting passed to my readInASpinnerbait function. Here's what I have: string readInFirstChars(ifstream &fin) { char first; string print; while...
5
by: Chuck Anderson | last post by:
I have finally started coding with register_globals off (crowd roars - yeay!). This has created a situation that I am not sure how I should handle. I have scripts (pages) that can receive an...
3
by: danbraund | last post by:
Hi everyone, I'm a long time C coder, who is coding his final year project in C++ to run under the MIT click routing system. Being fairly new to the OO side of the language, my problem is this: ...
2
by: Susanne | last post by:
HI I built a website (for someone else) that sends several data fields to an aol e-mail account. I have noticed on several occasions that the data fields are passed blank to the e-mail. When I...
2
by: assgar | last post by:
I am having problems getting the user selected form info to inserted into the mysql database. I am also rec eving an error: Warning: Variable passed to each() is not an array or object in ...
3
by: Brian.Abernathy | last post by:
This is probably a simple thing to do, and it seems like I managed to do this a few years ago, but I can't find a good example. I'm trying to create a 'generic' page that I can call during my...
103
by: chochote | last post by:
Hi, I have a PHP script that does some processing, and stores an error message as a variable. The script then redirects to another script with the error string in the URL, with the second script...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.