AnsweredAssumed Answered

PHP connection to data, can it be converted to .net?

Question asked by Tom_Droz on Feb 2, 2017
Latest reply on Feb 3, 2017 by beverly

Hi

 

I have a form on a web site that when submitted it sends the data to Filemaker 14, hosted on Server 14.

 

I have a 3rd party I wanted to do this with also but they informed me they can only have the form action page written in .Net.

 

Can a .Net form communicate with FileMaker?   Or is this a dead end?

 

Any help would be appreciated.

 

Here is some of the code in PHP not that post the data

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php

require_once('Connections/ShiftPoint.php'); ?> (This file has the connection information for the layout ect for the FileMaker file)
<?php
$FormAction_add = $ShiftPoint->newAddCommand('WEB_ApplyFinancingFromWeb');
$FormAction_fields = array
('First_Name'=>$_REQUEST['First_Name'],
'Last_Name'=>$_REQUEST['Last_Name'],
'Middle_Name'=>$_REQUEST['Middle_Name'],
'Email'=>$_REQUEST['Email'],
'Birth_Date_Month'=>$_REQUEST['Birth_Date_Month'],
'Birth_Date_Day'=>$_REQUEST['Birth_Date_Day'],
'Birth_Date_Year'=>$_REQUEST['Birth_Date_Year'],

foreach($FormAction_fields as $key=>$value) {
    $FormAction_add->setField($key,$value);
}
$FormAction_add->SetScript('Send_Email_New_Web_Contact','');

$FormAction_result = $FormAction_add->execute();

if(FileMaker::isError($FormAction_result)) fmsTrapError($FormAction_result,"error.php");

$FormAction_row = current($FormAction_result->getRecords());

 

Thanks

Tom

Outcomes