Forum Moderators: open
Here is the code I am working with:
This is the js function within the asp page that calls the php page.
function updateImg(action, uID, param1)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var filename = document.form1.whatsit.value;//Image Name
alert (filename);
var url="test.php"
url=url+"?action="+action
url=url+"&username="+uID
url=url+"¶m1="+param1
//url=url+"¶m2="+param2
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
when I run this script:
echo '<pre>'; print_r($_FILES); echo '</pre>';
exit;
this is what I get:
Array
(
)
Is this not possible? To go from Embedded JS in ASP to PHP.
Peace V
Thanks, CN