PHP yükleme - isset ($ _POST ['submit']) her zaman YANLIŞ Neden

0 Cevap

Ben aşağıdaki kod örneği upload3.php var:

<html>
<head>
<title>PHP Form Upload</title>
</head>
<body>

<form method='post' action='upload3.php' enctype='multipart/form-data'>
    Select a File:
    <input type='file' name='filename' size='10' />
    <input type='submit' value='Upload' />
</form>

<?php

if (isset($_POST['submit']))
{
    echo "isset submit";
}
else 
{
    echo "NOT isset submit";
}

?>

</body>
</html>

The code always returns "NOT isset submit". Why does this happen? Because the same script upload3.php calls itself?

0 Cevap