Inserting file name in database
I just started using Digital File Pro today and have a question. I've got the file upload working correctly but I need to insert the file name that is uploaded into a column in my database so that I can retrieve either the name alone or the file path so I can display it.
I'm using the dynamic "server file name" as the new name of the uploaded file. I've placed a hidden field in the same div as the file upload field and I then dragged the "server file name" dynamic listing from the bindings panel onto the hidden field. It seems like this should work but it's not. The MySql column is set to VARCHAR 150, null.
Here's some more background on the form in case it means anything. I have 6 text fields in the form along with 1 check box field with about 10 check boxes. I've got 4 file upload fields for the image uploads where I've created a hidden field to set the server behavior for DFP and I'm using the trigger of a single "submit" button.
Here's the code for the hidden field that's used for the server behavior:
<input name="upload1" type="hidden" id="upload1" value="Upload Photo" />
And here's the one that I'm using to hopefully populate the filename or path and insert into the database:
<input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>" />
Any suggestions on how I should do this?
I'm very new to web design and PHP so please keep that in mind with any replies. Just an old fart here and learning this PHP has a tendency to fry my brain at times.
Thanks in advance,