aloi95 Posted June 1, 2009 Share Posted June 1, 2009 Hello Guys, I'd like someone to help me do the following: 1. I want a script that make the visitor input text and then he click the submit button and gets a proofreaded version of it so the whole point is that i want the script to replace wrong words with the right one, and i want to specify them. 2. And I'd like it to make the first letter in the effect capitalized 3.could you please make it change "attack" to "Attack" without qoutes as an example so that i can continue without help Here is my try at the coding: Submit Page: http://www.aloi95.com/OCG/index.php Correction Page: http://aloi95.com/OCG/correction.php Thanks Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/ Share on other sites More sharing options...
Dark-Hawk Posted June 1, 2009 Share Posted June 1, 2009 You're going to need to post the code and let us know what errors you're having for anyone to help out. Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/#findComment-847017 Share on other sites More sharing options...
aloi95 Posted June 1, 2009 Author Share Posted June 1, 2009 its not an error its just that i want the text that people enter @ http://aloi95.com/OCG/index.php to be checked and fixed to specific grammar for example if they enter "It attacks you opponent" the php will correct it and make it "It Attacks you Opponent" i know its wierd but its for a Yugioh card maker. thanks Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/#findComment-847026 Share on other sites More sharing options...
lonewolf217 Posted June 1, 2009 Share Posted June 1, 2009 take a look at http://www.w3schools.com/PHP/php_ref_string.asp specifically functions like http://www.w3schools.com/PHP/func_string_ucfirst.asp or http://www.w3schools.com/PHP/func_string_ucwords.asp Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/#findComment-847035 Share on other sites More sharing options...
aloi95 Posted June 1, 2009 Author Share Posted June 1, 2009 sorry but could you please make this script turn the word attack to Attack and make the first character of the string capatalized Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/#findComment-847039 Share on other sites More sharing options...
lonewolf217 Posted June 1, 2009 Share Posted June 1, 2009 i gave you the exact function you need to do that. look at the examples on that page and you can figure it out easily by yourself you learn nothing by having it handed to you Link to comment https://forums.phpfreaks.com/topic/160502-help-with-my-php-program/#findComment-847061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.