legohead6 Posted February 22, 2007 Share Posted February 22, 2007 ok, well i have a registration for an event and the user needs to enter how many items he needs and then it need to times that by the price, etc, but how do i make it so when the user changes the number of supplies it automaticly updates the total(without a submit button) i know how to do all the math just need the onchange code.. Link to comment https://forums.phpfreaks.com/topic/39713-onchange-math/ Share on other sites More sharing options...
jcbarr Posted February 22, 2007 Share Posted February 22, 2007 Javascript. PHP does not do that. Link to comment https://forums.phpfreaks.com/topic/39713-onchange-math/#findComment-191717 Share on other sites More sharing options...
Barand Posted February 22, 2007 Share Posted February 22, 2007 If getting the price involves a database lookup, you can use AJAX Link to comment https://forums.phpfreaks.com/topic/39713-onchange-math/#findComment-191753 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.