Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    calculate something!!

    Hi everyone:
    I have another question:
    When customer order somethings and click a button called "calculate total", I want it to go to another page called "summay" page and it would list what they all bought and give them the total including the tax, s&h, etc.... How do I do it?

    ps: can it be done in HTML also? or only JS?
    HELP!!!!!!!!!!!!!!!!!! Thanks

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    it is going to have to done in JS but a server side language would be the best way.

  • #3
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you help me with the code? Thanks

  • #4
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    He's right about only being able to use JavaScript rather than just plain HTML.
    He's also right about it being better to use a server-side language, I personally would use ASP because that's the only server-side language I know. Although I would have to battle through very unfamiliar code to get to the required script.

    In the mean time, here's a Shopping Cart script, it doesn't work properly in Opera, but as I keep promising myself I'll get round to fixing that one of these days.
    Perhaps I'll even muddle round to combining it with this script.
    Attached Files Attached Files
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150


  •  

    Posting Permissions

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