how to make a lowercase to uppercase in php? yes, here is the solution. type in textformat as below using notepad or dreamweafer. then save with name lowup.php
The following how to make it:
<html>
<head>
<title>lowercase letters to uppercase</title>
</head>
<style type="text/css">
#kotak {
width: 200px;
background-color: #990000;
margin: auto;
-webkit-border-radius-:25px;
-moz-border-radius:25px;
}
#label {
text-align: center;
padding: 10px;
font-size: 14pt;
}
#input {
margin: 3px;
}
#proses {
margin: 5px;
}
#titles {
text-align: center;
padding: 10px;
font-size: 14pt;
}
#hasil {
text-align: center;
padding: 10px;
font-size: 18pt;
background-color: #00FF00;
-webkit-border-radius-:15px;
-moz-border-radius:15px;
}
#pembatas {
margin: 10px;
}
</style>
<body>
<form action=lowup.php method=get>
<div id=kotak>
<div id=label>Enter phrase below :
<div id=input>
<textarea name=phrase rows=2 cols=15></textarea>
<div id=proses><input type=submit value=Proses>
</div>
</div>
</div>
</div>
</form>
<?php
$phrase = $_GET['phrase'];
$pecah = explode(" ", $phrase);
$jml = count($pecah);
echo "<div id=kotak>
<div id=titles>Before processing:</div>
<div id=hasil>$phrase</div></div>";
echo "<div id=pembatas></div>";
echo "<div id=kotak>
<div id=titles>After processing:</div>
<div id=hasil>";
for ($i=0; $i<=$jml; $i++){
$kapital[$i] = strtoupper(substr($pecah[$i],0,1));
$baru[$i] = substr_replace($pecah[$i], " ".$kapital[$i],0,1);
echo "$baru[$i]";
}
echo "</div></div>";
?>
</body>
</html>
note :
save with name lowup.php
You can change the css one likes you
if you want to download php files, you can download here.
thank you
Friday, April 8, 2011
make lowercase letters to uppercase with php
Subscribe to:
Post Comments (Atom)
Popular Posts
-
PHP Definition According to official documents of PHP, PHP stands for PHP Hypertext Preprocessor. It is a form of language scripts that ar...
-
Make Application stopwatch A stopwatch is a handheld timepiece designed to measure the amount of time elapsed from a particular time w...
-
At the beginning of its development, by default the global registers in the set of On the tujuang to give the user ease in learning PHP, ...
-
change picture with button and text and we are learn load picture make change picture apple to orange to haha the steps are 1 . ope...
-
make lowercase letters to uppercase with php how to make a lowercase to uppercase in php? yes, here is the solution. type in textformat ...
-
Data Manipulation Language (DML) ADD DATA INSERT INTO table_name VALUES (value_1, value_2 ,..., nilai_n) OR ...
-
Set His estate : Object Property Nilai Form Name Form1 Caption Program penghitung volume tabung Lab...
-
Creating applications in visual basic text preview the steps are 1 . open microsoft visual basic yours 2 . ...
-
Java scripts and Java differences First in Class X EMP B (Programs and Classes), Most Hated Banget with that name there are 2 JAVA Karna...
-
CONNECTION TO DATABASE, metadata Project for which we can make to a high with the database we have, then we have toconnect your database...
2 comments:
:) STMIK AMIKOM?
hehehe, yups, thanks for visiting my blog
Post a Comment
thank you for visiting my blog and comment here. I hope the commentary contains a comment which intend to build and repair. criticism and suggestions I gladly accept.