![]() |
Conditional based on strstr()
what's wrong with this conditional i thought i was being quite creative?
PHP Code:
oh and i read php.net before i came here too :) |
Quote:
Back to your problem. I think your approach is not the best. What if the message is different (strstr would be false), it would not include the message. Why not just a plain and simple: PHP Code:
|
I'd have to agree and even submit that if that user passes anything in that var, assume it to be a change and use it. A very simple if($personal_message). Why ask for custom input if you are going to second guess them?
If they just ammend the message with the your above code, the logic would ignore it if I understand it correctly. Do sanity checks on it if passed in like globalize at least, but not second guess their customization. |
All times are GMT. The time now is 08:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|