SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php math's issue

    Hi

    I need some help with php math functions

    I have added a php order form to my website at the following

    http://www.irhwebsites.co.uk/web-design-order-form.php

    I have added a total deposit to pay now field

    Two issues, one is I want the total to be divided into 2 and then that figure displayed in the total deposit to pay now input field

    Second issue is after filling the details and clicking submit, I have made extra text saying total deposit to pay now, I want that to display the total price divided by 2 and then the paypal button to know that number divided into 2 and taken through to PayPal

    At the moment the paypal button is just taking the total price and going through to PayPal

    I can send over php files if that is possible through PM or by email if anyone wants to email me at <snip>

    Thank you in advance

    Kind regards

    Ian
    Last edited by Force Flow; Jul 11, 2013 at 15:53. Reason: Removed email address

  2. #2
    SitePoint Addict Shaydez's Avatar
    Join Date
    Jul 2006
    Location
    Boca Raton, Florida
    Posts
    352
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Use a calculator, a pen and paper to figure out your algorithm and then put it into code sense its what i do.


    As for the paypal button issue. I don't know what your code looks like but i'm sure your over looking something really simple.
    Sr. Website Developer and Internet Marketing
    www.CarlosJa.com Note: If anyone
    needs to get ahold of me please feel free to email me through
    my site. Apparently i missed quite a few private messages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •