Dispatch from PHP

Learn how to dispatch a form using PHP

Brett Long avatar
Written by Brett Long
Updated over a week ago

This is a PHP sample showing how to dispatch a form to a particular device.

You'll need to import the provided sample form JSON into your Device Magic organization, and adjust the settings in the PHP code below to match your organization / device.

Then if you serve this page, it'll prompt you for some initial answers for a dispatch of the simple construction inspection demo form to your device. When you submit back those answers, this script will dispatch the form to your device, and show the dispatched XML as well as the server response.
โ€‹
โ€‹

Did this answer your question?