Create GST Tax Calculator in PHP Code, How to calculate GST using PHP SCRIPT Code, Create Auto Calculate GST in PHP
Hello Friends, Today we will talk about how to make a GST Calculator through Core PHP. You will be told today through step-by-step Tutorials.
First, let’s Create a GST Form. Just as a GST Calculator’s form is created below.
gst-calculate-in-php.php
<!DOCTYPE html> <html> <head> <title>How to Create GST Calculator Using PHP? - Experts PHP</title> </head> <body> <h1>How to Create GST Calculator Using PHP? - Experts PHP</h1> <form method="post"> Total Amount: <input type="text" name="am"> %: <input type="text" name="per"> <input type="submit" name="submit" value="get"> Result:- <input type="text" value=""> </form> </body> </html>
Then how to Calculate GST after you are given the script code of php below.
<?php if(isset($_POST['submit'])){ $am = $_POST['am']; $per = $_POST['per']; $GST_Amount = ( $am * $per ) / 100 ; echo $GST_Amount+$am; } ?>
gst-calculate-in-php.php
<!DOCTYPE html> <html> <head> <title>How to Create GST Calculator Using PHP? - Experts PHP</title> </head> <body> <h1>How to Create GST Calculator Using PHP? - Experts PHP</h1> <form method="post"> Total Amount: <input type="text" name="am"> %: <input type="text" name="per"> <input type="submit" name="submit" value="get"> Result:- <input type="text" value="<?php if(isset($_POST['submit'])){ $am = $_POST['am']; $per = $_POST['per']; $GST_Amount = ( $am * $per ) / 100 ; echo $GST_Amount+$am; } ?>"> </form> </body> </html>