geeman Posted August 14, 2013 Share Posted August 14, 2013 I don't know how to fix this. It worked in 4.3 php, then my server got upgrade to 5.0 , then I have this error , how do I fix this. Thanks if you read this. it might be 5.3 php now Warning: file() [function.file]: Filename cannot be empty in (directory) at line 24. So here is my line24 24 $answerarray = file($_POST['answerfile'] ); Link to comment https://forums.phpfreaks.com/topic/281149-help-me-with-simple-code/ Share on other sites More sharing options...
requinix Posted August 14, 2013 Share Posted August 14, 2013 You have to check that the form was submitted before you try to use it anywhere. Like if (isset($_POST["name of the submit button"])) { Link to comment https://forums.phpfreaks.com/topic/281149-help-me-with-simple-code/#findComment-1444931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.