raptorman Posted October 16, 2009 Share Posted October 16, 2009 I am sorry I posted this first in the wrong topic area. I posted it under Joomla. Hello, This is being created for a membership website. I was able to create the form we need, i.e. Name_______________________ Address__________________ City________________________ State_____________________ Etc Etc. There are 5 different types of membership i.e. Regular $10.00 a year Regular with publication $25.00 a year Etc. Tried the membership types in both a dropdown and radio buttons. Now the problem, when a user checks the desired membership I can't figure out how to have it moved to another field with their selection (amount etc) so they can proceed to checkout. We created the form with software we purchased breezingforms. Thanks to anyone who can help. Dave Link to comment https://forums.phpfreaks.com/topic/177960-form/ Share on other sites More sharing options...
teynon Posted October 16, 2009 Share Posted October 16, 2009 Are you trying to do this live on the page? As in user selects price and there is like a calculator on the right side that updates the price? If so, that would be javascript. If not, I would assume you are trying to work with form variables. Please clarify, thanks! Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938298 Share on other sites More sharing options...
chronister Posted October 16, 2009 Share Posted October 16, 2009 To react to user interaction, you would use javascript. Please elaborate more on what you want to accomplish... Do you want the cursor to advance to the next field or do you want the value of one field to display in another? Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938304 Share on other sites More sharing options...
Kaboom Posted October 16, 2009 Share Posted October 16, 2009 I believe he wants it like WHCMS so when you pick a plan, it then in the same windom without releoading adds another dropdown form below asking them their pricing details like bi-monthly, annuaklly and such ... and yea thats Javascript not PHP but you can do it in PHP too i think ... not sure Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938311 Share on other sites More sharing options...
raptorman Posted October 16, 2009 Author Share Posted October 16, 2009 Thank you for your replies, When the user would click on say a radio button 1 year no publication 25.00 this would update another field at the bottom of the page __________ Your total then they would be able check out. Thanks again It is hosted on a sandbox site right now. Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938314 Share on other sites More sharing options...
teynon Posted October 16, 2009 Share Posted October 16, 2009 Raptorman, that means yes, this is javascript. I will go ahead and answer your question though. Your field would look like this: <script> function updatePrice(val) { document.blah.prc.value=val+5; // 5 shipping and handling or whatever. } <form name="blah"> <input type="radio" name="myVal[]" value="1" onClick="updatePrice(this.value);"> <input type="text" name="prc" readonly> </form> Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938318 Share on other sites More sharing options...
raptorman Posted October 16, 2009 Author Share Posted October 16, 2009 Thank you very much I am sorry for posting it here but I was told that breezingforms was php Again thank you very much Dave Link to comment https://forums.phpfreaks.com/topic/177960-form/#findComment-938377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.