HighDots Forums  

Insert upload file name into MySQL

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Insert upload file name into MySQL in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
VernMan
 
Posts: n/a

Default Insert upload file name into MySQL - 07-27-2004 , 09:24 PM






Can anyone tell me why I cannot insert an upload file name into a MySQL record? The record insert fine except the file name is left blank and I can't figure out why.

Any ideas?

Reply With Quote
  #2  
Old   
VernMan
 
Posts: n/a

Default Re: Insert upload file name into MySQL - 07-28-2004 , 06:48 AM






I can't even get thet the field to echo in php by submitting the form to itself using

$HTTP_POST_VARS['file'];

What am I missing here?

Reply With Quote
  #3  
Old   
Mcrob
 
Posts: n/a

Default Re: Insert upload file name into MySQL - 07-28-2004 , 07:03 AM



Im trying too figure out the samething. I use the server behaviours and I as well doesnt understand on how too do it.

Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Insert upload file name into MySQL - 07-28-2004 , 08:47 AM



VernMan wrote:

Quote:
I can't even get thet the field to echo in php by submitting the form
to itself using

$HTTP_POST_VARS['file'];

What am I missing here?

Try it with:

echo $HTTP_POST_FILES['file']['name']

Then see:
http://www.php.net/manual/en/features.file-upload.php


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.