SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Mar 2, 2002, 08:50 #1
- Join Date
- Feb 2002
- Location
- Birmingham, UK
- Posts
- 496
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
oi! only five smilies per post...how?
is there a function in php to limit the amount of smilies that can be entered into a form, or will it have to be a javascript approach?
http://redgoals.com ... my site ... nuff said
-
Mar 2, 2002, 12:04 #2
How do you parse smilies? (i.e turning them into images)
Whichever function you are using, you can just do this:
PHP Code:if (substr_count(parseSmilies($text), '<img')>5) {
// more than 5 smilies
}
Bookmarks