deansaddigh Posted February 4, 2010 Share Posted February 4, 2010 basically the form posts back to same page, and then if the post has been set i want it to make a directory. For somereason its never getting set and it should be <!--Form start--> <form id="two" enctype="multipart/form-data" action="image_upload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> <fieldset> <legend>Choose a file to upload:</legend> <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </fieldset> </form> <?php if(isset($_POST["uploadedfile"])) { //Create the folder if it does not already exist if(!file_exists('photos')) { if(mkdir('photos')) { echo 'Folder ' . 'photos' . ' created.'; } else { echo 'Error creating folder ' . 'photos'; } } } ?> Link to comment https://forums.phpfreaks.com/topic/190950-my-isset-is-never-getting-set-and-it-should/ Share on other sites More sharing options...
wildteen88 Posted February 4, 2010 Share Posted February 4, 2010 If you're uploading files you'd use the $_FILES superglobal instead. Link to comment https://forums.phpfreaks.com/topic/190950-my-isset-is-never-getting-set-and-it-should/#findComment-1006940 Share on other sites More sharing options...
deansaddigh Posted February 4, 2010 Author Share Posted February 4, 2010 cheers man appreciatre that Link to comment https://forums.phpfreaks.com/topic/190950-my-isset-is-never-getting-set-and-it-should/#findComment-1006976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.