savagenoob Posted October 8, 2009 Share Posted October 8, 2009 OK, I have created a CRM type system for insurance agencies to use. All of these agencies use a certain local program to quote insurance for customers. Other CRM system and companies have successfully created a "bridge" from this local program to their website, but I dont know how exactly. They create a batch file that creates a file with the clients data then copies the location in the url like this : https://secure.mysite.com/Common/Login.aspx?ds=/UploadRater.aspx?fp=C:%5CWinFSC%5CShared%5C~4624-1.TMP&ty=0&sc=1 . This is a login page that holds this data in a form but I dont know what its doing after this, I do not have a login. Here is the source code. <HEAD> <TITLE>AnchorApp UploadRater</TITLE> <META name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"> <META name="CODE_LANGUAGE" content="Visual Basic 7.0"> <META name="vs_defaultClientScript" content="JavaScript"> <META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <LINK href="Styles/Core.css" type="text/css" rel="Stylesheet"> <SCRIPT src="Scripts/Core.js" type="text/javascript"></SCRIPT> <SCRIPT language="javascript"> <!-- function OpenCertDetails() { window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USANCH22', 'sitecert', 'height=400,width=475,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes', true); } //--> </SCRIPT> </HEAD> <BODY class="Flush" onload="SetFocus('txtUserId')"> <form name="UploadRater" method="post" action="Login.aspx?ds=/UploadRater.aspx?fp=C:%5CWinFSC%5CShared%5C~4624-1.TMP&ty=0&sc=1" id="UploadRater"> <input type="hidden" name="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" value="dDwxMjIxOTcwNzcyO3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDE+O2k8Mz47aTwxNT47PjtsPHQ8O2w8aTwxPjtpPDM+O2k8NT47aTw3Pjs+O2w8dDxwPGw8c3JjOz47bDwvQ29tbW9uXFxJbWFnZXNcXEhlYWRlcl9UaXRsZS12ZXIyLmpwZzs+Pjs7Pjt0PHA8bDxocmVmOz47bDwvSW5kZXguYXNweDs+Pjs7Pjt0PHA8bDxocmVmOz47bDxqYXZhc2NyaXB0OlBvcENvbW1vbignLycsICdyZXF1aXJlbWVudHMnKTs+Pjs7Pjt0PHA8bDxocmVmOz47bDxqYXZhc2NyaXB0OlBvcENvbW1vbignLycsICdoZWxwJyk7Pj47Oz47Pj47dDw7bDxpPDE+Oz47bDx0PHA8bDxzcmM7PjtsPC9Db21tb25cXEltYWdlc1xcQ3VzdFN2Y19pbWFnZS5qcGc7Pj47Oz47Pj47dDxwPGw8c3JjOz47bDwvQ29tbW9uXFxJbWFnZXNcXFNTTF9TdGFtcC5naWY7Pj47Oz47Pj47Pj47Ph6XZ4L24xUVrzJdc5U59jnz+Lcu" /> <script language="javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform = document.forms["UploadRater"]; } else { theform = document.UploadRater; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // --> </script> I basically need to get this file or the files info the same way to my site so I can parse the data to extract the clients info such as name, address, ect.. Kinda complicated but maybe someone knows how to do this. It looks like they are using this hidden form to upload this file without user submission, can this be done? Quote Link to comment Share on other sites More sharing options...
savagenoob Posted October 8, 2009 Author Share Posted October 8, 2009 would something like this work? <form> <input id=test type=file name=test style="visibility:hidden;position:absolute;top:0;left:0" onchange="document.getElementById('info').innerHTML=this.value"> </form> can someone modify this to pass an url from a php variable? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.