Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <form>
  2. Service fee :
  3. <input type="text" value="300" name="gst">
  4. <select>
  5. <option>CGST 9% AND SGST 9% on service fee</option>
  6. <option>IGST 18% on service fee</option>
  7. </select>
  8. <input type="text" value="54" name="tax"> // value get calculate on service fee is 54 (after javascipt programme)
  9. <input type="submit" name="submit">
  10.  
  11. </form>
  12.  
  13. <?php
  14.  
  15. $ctax= $_POST['tax'];
  16. $ctax2= $ctax/2;
  17. $ctax3= $ctax/2;
  18. sql_query= "INSERT INTO VISAINVC(cgst9%,sgst9%) VALUES('$ctax2','$ctax3')"
  19.  
  20. ?>
  21.  
  22. the post value should get divided and insert into mysql visainvc table i.e
  23. table column -> CGST 9% = 27 (50% of 54 - 18% ON SERVICE FEE i.e 300 )
  24. table column -> SGST 9% = 27 (50% of 54 - 18% ON SERVICE FEE i.e 300 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement