Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

maclover001

macrumors 6502a
Original poster
Mar 25, 2008
895
0
Vancouver, Canada
Sorry about the odd title.

I'm making a site for a small business, and I want to make something similar to this:

http://store.apple.com/us/configure/MB604LL/A?mco=MzA3MTE3NA

See how depending on what radio buttons are selected, the price shown at the right adjusts?

Here's a quick mockup:

( ) Option 1 (Included)
(*) Option 2 (Add $10)

( ) Option 1 (Included)
(*) Option 2 (Add $45)

(*) Option 1 (Included)
( ) Option 2 (Add $10)

Total price: $55

Anyone get what I'm saying? It's probably simple PHP. How would I go about this?

Thanks
 
Via pure php you'd need to refresh the page via the server -- but it can all be done on the client using JavaScript. Or even a combination of the two if you throw Ajax into the mix.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.