![]() |
|
#1
|
||||
|
||||
Upload Scripti want to add an upload feature to my website but am getting some issues following is my code i want the files which are uploaded by the users are getting stored in the "uploads" folder but the following code doesn't do that solve my issues
PHP Code:
|
||||
|
#2
|
||||
|
||||
Re: Upload ScriptWhat issues are you having?
Does the folder named "uploads" exist? The PHP Manual says, "Always use quotes around a string literal array index." On the second line of your code, the string "upload" is an index of the $_POST array. It should have quotes around it. That means that $_POST[upload] should be $_POST['upload']. A better way to check that a file has been uploaded is to check that the $_FILES array is not empty by using the empty() function. Discard the hidden input. |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web stats | fcolor | Web Design Forum | 10 | 12-Jul-2007 09:48 |
| Need Free Website Templates | sam_dezine | Web Design Forum | 8 | 06-Sep-2006 04:25 |
| Who Is A Web Designer ? | alicehopkins | Web Design Forum | 1 | 13-Jun-2006 03:56 |
| HTML Code | amgujral | Web Design Forum | 0 | 07-Apr-2006 10:46 |
| Upload Script | da_bomb50 | MySQL / PHP Forum | 6 | 21-Mar-2005 12:01 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The