Which script can accept the parameters of the external by url parameters.
I only need the information behind the '?'(like 'id' or 'name'),can you tell me more?Thank you.
"of the external" --> means what exactly? what is making the call and to what. To an fmp url, or a cwp/xml api url?
like a url:
is sent to the page of filemaker server,how can I get the 'id' and the 'name' in my program?
What page of filemaker server? FMS has a few APIs that you can talk to. One of the is the XML API and in FMS16 you also have the new Data API.
(there's also a PHP API and ODBC and JDBC).
So you can't just send any old URL to FMS and hope it will understand it. You have to talk to FMS in the format of its available APIs. If you have no control over how the URL is constructed and sent then you have to provide your own middleware that can receive the URL, get the parameters out of it and then pass those to FMS to do something with it (create a new record, set the values of those parameters in specific fields, run a script,...)
That 'middleware' can be a simple PHP or ASP.NET or Ruby page, whatever you are comfortable putting together. Doesn't even have to be hosted on the FMS box, provided that it can talk to the FMS box through the FMS APIs.
first,I need to creat a new page A;
second,get the parameters to the page A;
third,pass those parameters to the FMS;
then run a script(in the program or filemaker server?) to receive those parameters in the program.
Is this understood?
Can you tell me which script step can do this(I have tried many times,but no one work)?
You don't need to run a script in FMS to pass the parameters. The PHP API or the XML API (or the FMS16 Data API) can write those parameters straight into a new FM record.
Running a script is one option if you don't want any of those APIs create or modify your records directly.
There are no specific scripts for this, you'd just pass your URL parameters into the FMS script as FM script parameters, once you have them in your script (use Get(ScriptParameter)) then you use whatever script steps to do what needs to be done.
so steps one two and three are correct.
Thank you for your patience，I'll try first.
Retrieving data ...