-
PHP picture submission
Hi,
I’m very new to PHP – unbelievably new.
I’m using dreamweaver and a customizable website script for a picture submission form, and also an information submission form.https://www.thatsfishing.com.au/ this is the website being worked on
this is the code for the form on a page which is not reachable yet (
//<form ><form form1"action="Scripts/upload.php" method="post" enctype="multipart/form-data">
//<p>
//<label for="file">Select a file:</label> <input type="file" name="userfile" id="file"> <br />
//<button>Upload File</button>
//<p>
//</form>and my PHP document code:
// $max_filesize)
die('The file you attempted to upload is too large. The maximum file size allowed is 500kbs');// Check if we can upload to the specified path, if not DIE and inform the user.
if(!is_writable($upload_path))
die('You cannot upload to the specified directory, please CHMOD it to 777.');// Upload the file to your specified path.
if(move_uploaded_file($_FILES['userfile']['tmp_name'],$upload_path . $filename))
echo 'Your file upload was successful, view the file here'; // It worked.
else
echo 'There was an error during the file upload. Please try again.'; // It failed :(.?>
(the opening php tag < ? php is disappearing here) with information included in the code ->
what do I have wrong? i have it all linked up properley in dreamweaver (the form to the PHP coding) so why wont the picture submit