phprocker Posted January 24, 2011 Share Posted January 24, 2011 Hey all. I have a function called displayForm in a form validation script. This function accepts a few arguments but these arguments are empty upon initial calling of the function. One of the arguments is and errors array that only gets populated if there were form errors. So upon running my script initially I get missing argument Warnings. Can these warnings simply be ignored? Would they cause problems throughout my script if I ignore these warnings? And how can I suppress these warnings if I would like to? Thanks all for your help. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/225494-undefined-argument-warnings/ Share on other sites More sharing options...
litebearer Posted January 24, 2011 Share Posted January 24, 2011 could we see the function and how you are calling it? Quote Link to comment https://forums.phpfreaks.com/topic/225494-undefined-argument-warnings/#findComment-1164394 Share on other sites More sharing options...
phprocker Posted January 24, 2011 Author Share Posted January 24, 2011 I figured it out. My function call: displayForm(); was missing the default argument: displayForm(array()); Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/225494-undefined-argument-warnings/#findComment-1164414 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.