I am new to FileMaker via PHP so please be patient with me.
We have a FileMaker XSLT page which shows data from a single record. I have used a form to post the recordID from the XSLT page to a PHP script. The PHP script sends an email and then redirects to a static page which indicates that the email message has been sent.
In the PHP script I am trying to figure out how to use the recordID to call our FMSA 10 for the contents of the email field which will be used of course as the TO: address for the generated email.
I see from the documentation that I will need to tell the PHP page how to contact the FMSA10 and then presumably actually call for the data.
So for contact, complete as appropriate for our installation:
$fm = new FileMaker();
$fm->setProperty('database', 'questionnaire');
$fm->setProperty('hostspec', 'http://192.168.100.110');
$fm->setProperty('username', 'web');
$fm->setProperty('password', 'web');
First question:
For the server contact, can the username and password be blank? For the XSLT pages our accessible fields are all accessible to anyone since they are posted on the web and the XSLT pages did not require a login.
Then:
I plan to tell a variable to hold the email address, so I need help with:
$mail = code to get field contents
I will not need no result escaping since the script can only be called from the XSLT generated page if there is an address in the field.
Second question: Assuming the database contact is setup correctly, how do I call for the content of a single field?
Thanks for taking a look at this issue.
-Erich Wetzel