Jump to content

my isset is never getting set and it should


deansaddigh

Recommended Posts

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';
				}
			}	

		}
 	 ?>	

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.