Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Background
I am using Dreamweaver and have a MySQL database and PHP web server running. I am a beginner to all of this but enjoying immensely.
Problem.
I have inserted some code to a form on a php page to do a file upload as below.
[syntax="html"]<form enctype="multipart/form-data" action="_URL_" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>1) What should the url be in the code above?
2) Is the file stored in the My SQL database or is it just uploaded to my web server for example in the public_html folder? 3) How do I account for this in a database table entry if i want ot corss reference which users have uploaded what?
Bit confused how to make this work and trying not to buy a PHP uploader software if possible?
Thanks
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]