aeroswat Posted June 1, 2010 Share Posted June 1, 2010 Wondering why this isn't recognizing when the submit button is pressed... it works on all my other forms but never on this form. <?php if(isset($_POST['submit'])) { echo "Button pressed"; }else{ ?> <form enctype="multipart/form-data" action="" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="50000000" /> Choose a file to upload: <input name="ufile" type="file" /><br /> <input type="submit" value="Upload File" name="submit"/> </form> <?php } ?> Link to comment https://forums.phpfreaks.com/topic/203563-not-recognizing-hitting-the-submit-button/ Share on other sites More sharing options...
kenrbnsn Posted June 1, 2010 Share Posted June 1, 2010 I assume you have a "<?php" at the start of the script. Nevermind. Ken Link to comment https://forums.phpfreaks.com/topic/203563-not-recognizing-hitting-the-submit-button/#findComment-1066317 Share on other sites More sharing options...
depojones Posted June 1, 2010 Share Posted June 1, 2010 It worked for me. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/203563-not-recognizing-hitting-the-submit-button/#findComment-1066320 Share on other sites More sharing options...
aeroswat Posted June 1, 2010 Author Share Posted June 1, 2010 It worked for me. wtf... and magically its working for me now... Something strange is afoot O_o Link to comment https://forums.phpfreaks.com/topic/203563-not-recognizing-hitting-the-submit-button/#findComment-1066321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.