Welcome Guest, Not a member yet? Register   Sign In
Display a set_message for each bad wor found in string
#3

(This post was last modified: 09-30-2016, 02:21 AM by salain.)

I think using set_message in a loop overwrite the previous message.
So you must be getting only the message for the last bad word.

I would try to implode the word array to test.

PHP Code:
$this->set_message('badword''Your message has band word(s) <b>' implode(',',$words) . '</b> you can not use that word.'); 
A good decision is based on knowledge and not on numbers. - Plato

Reply


Messages In This Thread
RE: Display a set_message for each bad wor found in string - by salain - 09-30-2016, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB