coryb12 Posted December 29, 2009 Report Share Posted December 29, 2009 Hi all! I am coding a custom ACARS program in C# for my va. The pilot login function will have the pilot enter their ID and password, then it will need to query a different Login.php (will be in the same folder, but named Login2.php). The different Login.php will need to simply take to ID and Password that is sent to it form the ACARS program, and send back to the program as true or false (basically, does the ID and password match up in the database, and does the pilot ID exsist). I need some help on what the new Login.php would need, as I have no experience with php. Can anyone post the php needed to perform a function like this? Also, if anyone knows what code is needed for C# to hit a php file and listen for a response, that would be very helpful, too, as I am learning more advanced C# as I code this. Thanks! Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 30, 2009 Administrators Report Share Posted December 30, 2009 You should create a module which will handle all your data, so: index.php/yourmodule/login then in php, there's a function in your module called login() You should communicate via XML, so you send POST data to login() using XML with your username/password, and write out XML with true or false or something which your client parses. XML is great for this purpose. See the FSFK module, the pirep() function. I parse XML sent from FSFK using PHP's SimpleXML features. Then writing out XML see the XML module Quote Link to comment Share on other sites More sharing options...
coryb12 Posted December 30, 2009 Author Report Share Posted December 30, 2009 Ok, thanks Nabeel. I'll give it a shot and see what I can do! ;D 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.