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 ; ? Quote 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...? Quote 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 Quote 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() ? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/216715-problem/#findComment-1125943 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.