N1KO Posted March 13, 2007 Share Posted March 13, 2007 Hello, I am a flash developer that has apsolutly no expierence writing PHP. I however need a translation of ASP to PHP code. I am quite sure that this will only take you 2 min at the most, so please help me. Thanks allot, I look foward to your help.. Ohh ja, the code loadvarsSend.asp <% response.write "&name1=" & request("param1") & "&name2=" & request("param2") & "&" response.end %> getXMLWParams.asp <% response.ContentType="TEXT/XML" Set docReceived = CreateObject("MSXML2.DOMDocument") docReceived.async = False docReceived.load Request Set RequestRoot = docReceived.documentElement nametype = RequestRoot.getElementsByTagName("nametype")(0).text if nametype = "1" then response.write ("<?xml version='1.0'?><results_packet><rec empid='125' empname='Bill Frye' dept='Admin'/><rec empid='126' empname='Janice Corning' dept='Admin'/><rec empid='122' empname='John Taylor' dept='IS'/><rec empid='123' empname='Michelle Heinz' dept='Graphics'/><rec empid='121' empname='Phil Heinz' dept='Sales'/><rec empid='124' empname='Sarah Johnson' dept='Accounting'/></results_packet>") else response.write ("<?xml version='1.0'?><results_packet><rec empid='125' empname='Bill F' dept='Admin'/><rec empid='126' empname='Janice C' dept='Admin'/><rec empid='122' empname='John T' dept='IS'/><rec empid='123' empname='Michelle H' dept='Graphics'/><rec empid='121' empname='Phil H' dept='Sales'/><rec empid='124' empname='Sarah J' dept='Accounting'/></results_packet>") end if response.end %> Link to comment https://forums.phpfreaks.com/topic/42537-asp-php-the-easiest-answer-you-will-ever-have-to-give/ Share on other sites More sharing options...
N1KO Posted March 13, 2007 Author Share Posted March 13, 2007 please help me.. I would apreciate it allot. I am currently stuck at this point in my Flash aplication.. Link to comment https://forums.phpfreaks.com/topic/42537-asp-php-the-easiest-answer-you-will-ever-have-to-give/#findComment-206420 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.