faani Posted October 9, 2006 Share Posted October 9, 2006 Hello all of you. This code not working. Me in great tension. Help me[code]$uploaddir = "/".$countryList."/"; //NAME OF DROPDOWN echo ($uploaddir); $file_name = "uploadfile"; function file_upload( $file_name, $uploaddir){ $uploadfile = $uploaddir . $_FILES[$file_name]['name']; if (@move_uploaded_file( $_FILES[ $file_name ]['tmp_name'], $uploadfile)) { } else { echo( $_FILES[ $file_name ]['name'] . " Does not uploaded successfully:\n"); } }[/code][b]EDITED BY WILDTEEN88: PLEASE DO NOT USE CAPS. ALSO PLEASE USE THE CODE TAGS ([nobbc][code][/code][/nobbc]) WHEN POSTING CODE. THANK YOU[/B]. Link to comment https://forums.phpfreaks.com/topic/23400-php-file-handling/ Share on other sites More sharing options...
JasonLewis Posted October 9, 2006 Share Posted October 9, 2006 to me it looks like ur not calling the file_upload function... wat exactly r u doing? Link to comment https://forums.phpfreaks.com/topic/23400-php-file-handling/#findComment-106142 Share on other sites More sharing options...
Hi I Am Timbo Posted October 9, 2006 Share Posted October 9, 2006 is $countryList a single string or a list of countries as the name suggests? If so, this may be the source of your errors. Link to comment https://forums.phpfreaks.com/topic/23400-php-file-handling/#findComment-106159 Share on other sites More sharing options...
faani Posted October 9, 2006 Author Share Posted October 9, 2006 actually i m working on window platform....and i m make directory when i enter the category name and now fomr the help of this code i m upload files in those fold ??? ??? :'( :'( :) :)er so me wat can??????????????? ??? Link to comment https://forums.phpfreaks.com/topic/23400-php-file-handling/#findComment-106182 Share on other sites More sharing options...
JasonLewis Posted October 10, 2006 Share Posted October 10, 2006 i don't even think you're speaking proper english now... can you re-phrase that please... Link to comment https://forums.phpfreaks.com/topic/23400-php-file-handling/#findComment-106729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.