How To Create MB to KB and KB to MB converter tool in php

Hello friends today i will tell you how to convert KB to MB and MB to KB converter tool with Php


code-

<br><br><br><br><br><br><br><br><br>
<center>
<h2>

<?php


if(isset($_POST['submit']))
{
 $size=$_POST['size'];

 echo $Kb=(1024*$size);
 echo " Kilo bytes";
}
?>

<html>
<head>
</head>
<body>
  <h2>   Mb To Kb conveter<h2>
<div id="wrapper">

<div id="convert_div">
 <form method="post"action="">
  <input type="text" name="size" >

  <br>
  <input type="submit" name="submit" value="Kb Convert">
 </form>

</div>

</div>
</body>

<br><br><br><br>

<?php


if(isset($_POST['submit1']))
{




 $size1=$_POST['size1'];

 echo $Kb1=($size1/1024);
 echo " mega byte";
}
?>

<html>
<head>
</head>
<body>
  <h2>    Kb To Mb conveter<h2>
<div id="wrapper">

<div id="convert_div">
 <form method="post"action="">
  <input type="text" name="size1" >

  <br>
  <input type="submit" name="submit1" value="MB Convert">
 </form>

</div>

</div>
</body>
</html>


</h2>
  <center>





Previous
Next Post »
Thanks for your comment