Use this then:
www.froobe.co.uk/kk.php
I was bored.
Script:
PHP Code:<?php
/**
* @author Ryan
* @copyright 2007
* @function PHP.NET
*/
// This function is off PHP.NET. It can be found under the ucfirst function (www.php.net/ucfirst)
function sentence_cap($impexp, $sentence_split) {
$textbad=explode($impexp, $sentence_split);
$newtext = array();
foreach ($textbad as $sentence) {
$sentencegood=ucfirst($sentence);
$newtext[] = $sentencegood;
}
$textgood = implode($impexp, $newtext);
return $textgood;
}
// This bit is coded by me :D (except from the sentace_cao bit, but oh well)
if( isset($_POST["text"] ) )
{
$text = $_POST["text"];
$text = sentence_cap( " ", $text );
echo $text;
}
else
{
echo
'
<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">
<input type="text" name="text" />
<input type="submit" value="Submit!">
</form>
';
}
?>






Reply With Quote


