Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form>
- Service fee :
- <input type="text" value="300" name="gst">
- <select>
- <option>CGST 9% AND SGST 9% on service fee</option>
- <option>IGST 18% on service fee</option>
- </select>
- <input type="text" value="54" name="tax"> // value get calculate on service fee is 54 (after javascipt programme)
- <input type="submit" name="submit">
- </form>
- <?php
- $ctax= $_POST['tax'];
- $ctax2= $ctax/2;
- $ctax3= $ctax/2;
- sql_query= "INSERT INTO VISAINVC(cgst9%,sgst9%) VALUES('$ctax2','$ctax3')"
- ?>
- the post value should get divided and insert into mysql visainvc table i.e
- table column -> CGST 9% = 27 (50% of 54 - 18% ON SERVICE FEE i.e 300 )
- 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