close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Inserting file name in database

Thread began 10/18/2009 10:15 am by roger.mealey391472 | Last modified 10/19/2009 12:57 pm by roger.mealey391472 | 2173 views | 9 replies


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,


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...