bamfon Posted January 14, 2011 Share Posted January 14, 2011 i want it so that the 1st letter in this text box when it Submited gets saved to the db as 1st letter <input name="title" type="text" id="title" size="50" /> Quote Link to comment https://forums.phpfreaks.com/topic/224413-1st-letter-in-this-text-box/ Share on other sites More sharing options...
revraz Posted January 14, 2011 Share Posted January 14, 2011 http://www.php.net/manual/en/function.substr.php Quote Link to comment https://forums.phpfreaks.com/topic/224413-1st-letter-in-this-text-box/#findComment-1159294 Share on other sites More sharing options...
dragon_sa Posted January 14, 2011 Share Posted January 14, 2011 $title=$_POST['title']; $firstletter=$title[0]; echo $firstletter; Quote Link to comment https://forums.phpfreaks.com/topic/224413-1st-letter-in-this-text-box/#findComment-1159304 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.