How to convert rupees into pound in PHP?



hello firends i'm going to show you convert ruppes into pound using php

first you know the pound value 
current pound value is 0.0097

   <?php
if(isset($_POST["submit"]))
{
    define("poundvalue",0.0097);
    $indianRupee=$_POST["rupee"];
    echo "entered rupees value converted in pound is ".poundvalue*$indianRupee;     
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatiblecontent="IE=edge">
    <meta name="viewportcontent="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action=""method="post">
        <label>Enter Rupees amount:</label>
        <input type="number"name="rupee"><br>
        <input type="submitvalue="convert"name="submit">
    </form>
</body>
</html>

output:-



Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post