Please I need to know how to send parameters from Delphi application to php page then php will make some calculations on these parameters and return result again to Delphi?
相关问题
- Views base64 encoded blob in HTML with PHP
- Angular RxJS mergeMap types
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
One of straight-forward ways in REST pattern (http://en.wikipedia.org/wiki/REST) would be:
1) Your Delphi client gets the page, passing all the parameters as HTTP GET or HTTP POST.
How are parameters sent in an HTTP POST request?
What's the simplest way to call Http GET url using Delphi?
using any library you wish. Some choices (not complete list) include:
et cetera
2) your PHP server gets those parameters and generates JSON page with the results
3) your Delphi client getting the page via HTTP, then parses JSON and works with the resulting variables
Some libraries to parse JSON are
4) do with the received data what you want to do