ebsnet You can do this using the URL parameters as mentioned by AMurray above in combination with the embed code.
So, using the javascript form code, put the code into your PHP page.
Your embed code should contain this part:
<div id="mf_placeholder"
data-formurl="https://www.example.com/embed.php?id=96624"
data-formheight="625"
data-formtitle="Untitled Form"
data-paddingbottom="10">
</div>
Now all you need to do is to construct the URL dynamically. This part:
https://www.example.com/embed.php?id=96624
Use the PHP variables to construct that URL with parameters.