I have a php script that fills the values in a pre-built pdf form. If I upload this script as a stand-alone php file, it works (on most browsers). The very same code, put into a ff form's Submit Pieces/Before Submit does not work. I was hoping to use a ff form to do the db query, allow for confirmation/changes to data, and then execute this code on submit, obviously replacing the current hard-coded information with the query variables. The following code is just a test with hard-coded vars to get it working. I don't know why it's not working as it seems like it should if it works outside of ff.