Thank you for the time you're taking to help me !
ok.. I tried what you suggested..but I I must have understood it wrong because it didn't work.
So, here is the code I use.
Server with the DB (Server A) : test_db_server.cfm
Remote file (Server B) : test_db.client.cfm
(test_db_client.cfm)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Untitled</title></head><body>
<cfhttp url="test_db_server.cfm" method="POST">
<cfhttpparam type="FORMFIELD" name="sqlstring" value="SELECT * FROM tbluser">
</cfhttp>
<cfwddx action="WDDX2CFML" input="#CFhttp.FileContent#" output="qryMyQuery">
<form>
<textarea>
<cfoutput>#CFhttp.FileContent#</cfoutput>
</textarea>
</form>
</body></html>
When this code is used I get the following error message :
------------------------
Error Diagnostic Information
XML parsing error: syntax error (error code 2, line 1, column 0, buffer offset 0)
The error occurred while processing an element with a general identifier of (CFWDDX), occupying document position (13:1) to (13:76).
--------------------------------
When I comment out the WDDX part as you suggested, I get a text area box... and all it says in it is "Connection Failure"
Regarding test_db_server.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<cfhttp url="test_db_server.cfm" method="POST">
<cfhttpparam type="FORMFIELD" name="#FORM.sqlstring#" value="SELECT * FROM tbluser">
</cfhttp>
<html><head><title>Untitled</title></head><body>
<cfif CGI.REMOTE_ADDR EQ "IP_ADDRESS_OF_REMOTE_SERVER">
<cfquery name="qryMyQuery" datasource="DSN-name" username="#Application.DBUSER#" password="#Application.DBPW#" DBTYPE="ODBC">
#FORM.sqlstring#
</cfquery>
<cfheader name="Content-Type" value="text/xml">
<cfwddx action="CFML2WDDX" input="#qryMyQuery#">
<cfelse>
<cfheader statuscode="404" statustext="Page Not Found">
</cfif>
</body></html>
When I browse to test_db_server.cfm, it produces the following error :
----------------
An error occurred while evaluating the expression:
"#FORM.sqlstring#"
Error near line 3, column 38.
-------------------------------
So I tried removing the hash sign around "FORM.sqlstring" ..
and..when I browse to that server file again, it gives me a blank page.
When I view the html source
it really is blank.. and..here is what it contains
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title>
</head>
<body>
</body>
</html>
Thanks again for your help...