Hi all have folowing code:
<? if($_POST["upload"] == "true"){ echo "recived ..."; } ?> <form enctype="multipart/form-data" action="<?echo $_SERVER["PHP_SELF"]; ?>" method="post"> <td>File</td> <td><input type="file" name="userfile"></td> </tr> <tr> <td> <input type="hidden" name="upload" value="true"></td> <td><input type="submit"></td> </table> </form>
when i press the submit button and the form is being sent , there is no echoing. If i change the enctype it works. why ? and how could i fix it (i need teh current enctype because of the file which is sent)
regards