Created
March 11, 2020 13:40
-
-
Save rizkiv1/698d038db5df8526a64eb5c00cb91132 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="#" method="post"> | |
Nominal Rp. <input type="text" name="nominal" /> <br/> | |
<input type="submit" value="SUBMIT" /> | |
</form> | |
<?php | |
$nominal = isset($_POST["nominal"]) ? $_POST["nominal"] : 0; | |
$format = number_format($nominal,2,",","."); | |
echo "Format Nominal : Rp. $format" ; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment