BillByrd Posted July 30, 2013 Share Posted July 30, 2013 Using downloaded scripts for chapter 3. ini_set ('display errors' , 1); does not display an error when submitting incomplete form. It simply displays whatever part of the form I did fill in. Help! Link to comment Share on other sites More sharing options...
Larry Posted July 30, 2013 Share Posted July 30, 2013 I'm not exactly sure what you mean, but your code is wrong. It should be display_errors with an underscore. That being said, display_errors has nothing to do with how completely a form is filled out. Link to comment Share on other sites More sharing options...
Edward Posted July 30, 2013 Share Posted July 30, 2013 Enabling display errors will only show PHP errors, if want to display which form attributes were not completed you will need to write your own validation code for them. Link to comment Share on other sites More sharing options...
BillByrd Posted July 30, 2013 Author Share Posted July 30, 2013 Sorry about the syntax error in my question. In chapter 3 we learn that inserting the ini_set ('display_errors' , 1); just below the php tag will trigger an error message when submitting an incomplete form. Larry only types in his name, omits email address, This produces an error message. When I submit only a name-- I do not get the error message. I'm no good at explaining things. Maybe you can figure out what I'm asking. Sorry. Link to comment Share on other sites More sharing options...
Larry Posted July 31, 2013 Share Posted July 31, 2013 Okay, I see what you mean now. Could you post the code you're using? Also, what URL are you using for the form? Link to comment Share on other sites More sharing options...
BillByrd Posted August 6, 2013 Author Share Posted August 6, 2013 It was some days before I realized your response was in my junk mail. Sorry. I tried again tonight and everything worked fine. Apparently just one of those things where one little tiny mistake on my part made it fail. Thanks Link to comment Share on other sites More sharing options...
Larry Posted August 6, 2013 Share Posted August 6, 2013 Well, I'm glad it's working now. Let us know if you have any other questions or problems going forward. Link to comment Share on other sites More sharing options...
Recommended Posts