mforan Posted October 24, 2010 Share Posted October 24, 2010 <?php $message = ereg_replace("\?", "?", $message); ?> ? (stupid thing keeps changing it) outputs: ?; how do u stop it from outputting ; ? Link to comment https://forums.phpfreaks.com/topic/216715-problem/ Share on other sites More sharing options...
mentalist Posted October 24, 2010 Share Posted October 24, 2010 Are you wanting to just simply display the ASCII code for a question mark? Or what...? Link to comment https://forums.phpfreaks.com/topic/216715-problem/#findComment-1125914 Share on other sites More sharing options...
mforan Posted October 24, 2010 Author Share Posted October 24, 2010 ive been building a forum, and i want people to be able to enter special chars like : ; >< ? ! etc etc Link to comment https://forums.phpfreaks.com/topic/216715-problem/#findComment-1125929 Share on other sites More sharing options...
tastro Posted October 24, 2010 Share Posted October 24, 2010 why don't you just use str_replace('?','question_mark',$s); or htmlentities() ? Link to comment https://forums.phpfreaks.com/topic/216715-problem/#findComment-1125933 Share on other sites More sharing options...
mforan Posted October 24, 2010 Author Share Posted October 24, 2010 yer that works. Link to comment https://forums.phpfreaks.com/topic/216715-problem/#findComment-1125943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.