need to know if you can send data to SQL server database using ASP.
I know it’s possible with PHP, but corporate policy
you can’t use PHP, if you can tell me how please
in advance thank you very much :p:p
don_vladimiro on iMac G4 ![]()
You can use ASP, thats no problem and doesn’t matter to unity. All unity does is send GET and POST requests that your server backend language interprets, be it ASP, PHP, CGI, Ruby or one of the many others ![]()
grateful for the answer, I did not expect so soon, but … :I
what method or code should be implemented to send data from Unity to the ASP file?
Thank you in advance ![]()
don_vladimiro on iMac G4
Unity to ASP is only a matter of the UnityEngine.WWW object.
If you want to send the data as GET then by adding it to the url
If you want to send the data as POST then by using the WWWForm object to pass along ![]()
you will find plenty of samples on the wiki for WWW usage.
is grateful for the response
, I see that the community responds far better than the official support.
when I send parameters or values to file.PHP
How would send parameters or values to the file.ASP?
in advance thank you very much
don_vladimiro on iMac G4
ASP and PHP recieve the same parameters. either by POST or GET methods. You would either format the code or URL to include them. ASP would deal with them in a different method. (Request.POST or Request.GET if I remember correctly)
In concept, GET url’s should be relatively short (like 256 characters) while POST’s can be very large. Most Web hosting sites limit the file upload to about 2mb. so if you keep things rather short, you can get some good stuff done. If you require something larger than that, you may consider sending “packets” of information and have the ASP page put it back together in the end.
ASP is not as forgiving for multipart forms as PHP, I much prefer the ease of PHP to the more underdeveloped ASP. That being said, a few good google searches for “ASP File Upload” would net you the proper code to make it work.