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']; 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. 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. Link to comment https://forums.phpfreaks.com/topic/249339-ucwords-is-post-syntax/#findComment-1280334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.