slyte33 Posted November 1, 2013 Share Posted November 1, 2013 I have a textbox to enter your username on my game.. As you type, the text is replaced with a php imagecreate using a TTF font with css positioning it in the textbox. the text-indent is set to -9999. I need to know if this is a good approach to making my game look more professional.. go to http://foarpg.com/game.php and simply click "Register", begin typing in the textbox Also how can I stop, using PHP ofcourse, the textbox from acting as if a slash ( \ ) is two characters even with stripslashes being used? Max char length is 12, but 6 slashes acts as 12 O.O Quote Link to comment https://forums.phpfreaks.com/topic/283492-is-this-a-good-approach/ Share on other sites More sharing options...
kicken Posted November 2, 2013 Share Posted November 2, 2013 I have a textbox to enter your username on my game.. As you type, the text is replaced with a php imagecreate using a TTF font with css positioning it in the textbox. the text-indent is set to -9999. Why not just use CSS to import the font you want to use and apply it to the textbox. What you have now is laggy and clunky. Importing custom fonts to CSS Also how can I stop, using PHP ofcourse, the textbox from acting as if a slash ( \ ) is two characters even with stripslashes being used? Max char length is 12, but 6 slashes acts as 12 O.O Either disable magic_quotes_gpc (recommended) or work around it using stripslashes. Quote Link to comment https://forums.phpfreaks.com/topic/283492-is-this-a-good-approach/#findComment-1456614 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.