raptorman Posted October 16, 2009 Share Posted October 16, 2009 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 how can help. Dave Quote Link to comment https://forums.phpfreaks.com/topic/177959-form-problem/ Share on other sites More sharing options...
highrevhosting Posted October 23, 2009 Share Posted October 23, 2009 Well I think what your saying is you need to know the value of what they are choosing? I would suggest an preset array for example <? $membershipcost= array('regular'=>'10.00','regularpub'=>'20.00'); ?> and the just cross reference their choice with that to get the price <? $membershiptype = $_POST['membershiptype']; if(!$membershipcost[$membershiptype]){ echo $membershipcost[$membershiptype]; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/177959-form-problem/#findComment-943052 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.