webguync Posted October 18, 2011 Share Posted October 18, 2011 I need to add ucwords so that the first letter is caps in POST data. Not sure where to put in within this. echo $_POST['name']; Quote Link to comment https://forums.phpfreaks.com/topic/249339-ucwords-is-post-syntax/ Share on other sites More sharing options...
gizmola Posted October 18, 2011 Share Posted October 18, 2011 Not clear on what you're asking for. You can change the value of the data in the $_POST $_POST['name'] = ucwords($_POST['name']); or you can just echo it out where you need it: echo ucwords($_POST['name']); What the best approach is, depends on what you're doing with the data. Quote Link to comment https://forums.phpfreaks.com/topic/249339-ucwords-is-post-syntax/#findComment-1280327 Share on other sites More sharing options...
webguync Posted October 18, 2011 Author Share Posted October 18, 2011 ok thanks. That solved the problem. Quote Link to comment https://forums.phpfreaks.com/topic/249339-ucwords-is-post-syntax/#findComment-1280334 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.