<html>
<body bgcolor='#cccfaa'>
<form name='frm1' method='post'>
Enter any String:<input type='text' name='t1' />
<input type='submit' value='Proper case' />
</form>
</body>
</html>
<?php
if(isset($_POST['t1']))
{
$st=$_POST['t1'];
echo "String in Proper Case:<b> ";
print (ucwords(strtolower($st)));
}
?>
No comments:
Post a Comment
Thanks for visiting my Blog!