RyanHockey38 Posted February 24, 2009 Share Posted February 24, 2009 Ok i am creating this application for a friend who has a computer company that needs a form for customization of a pc computers. I have everything made but my main problem is figuring out how to have 2 values for my form. Iam using radio buttons, exampe: <input type="radio" value="225.67" name="os">Microsoft Windows Vista Ultimate ($255.67) I need to be able to store the part name and actual value of the part for future reference from that radio button. But how do I store 2 values with radio button. Cause I will need to be able to present a summmary and tell them like this: Operating System: Microsoft Windows Vista Ultimate $255.67 instead of this: Operating System: $255.67 So how do I this... Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/ Share on other sites More sharing options...
Q695 Posted February 24, 2009 Share Posted February 24, 2009 do a 2 item option list, that pulls both items from the database. any php developer could easily do this. Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-769887 Share on other sites More sharing options...
RyanHockey38 Posted February 24, 2009 Author Share Posted February 24, 2009 what do you mean like have to radio buttons or what i want it to have the functionallity like dell has where you choose the parts by radio button but not that fancy and stuff can you give me example code on how you do a 2 item option list cause i'm not really that sure of what you're talking about. this problem really easy and i'm making it harder for myself, ya i know but i do not understand it. Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-769888 Share on other sites More sharing options...
Q695 Posted February 24, 2009 Share Posted February 24, 2009 Do a while with items tied to an item type with a MySQL statement. Until you show me your syntax, I won't write code for you, but I will freelance it. That is the purpose of the freelance board. Ryan, don't PM me. Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-769895 Share on other sites More sharing options...
sasa Posted February 24, 2009 Share Posted February 24, 2009 <input type="radio" value="225.67;Microsoft Windows Vista Ultimate ($255.67)" name="os">Microsoft Windows Vista Ultimate ($255.67) and explode(';', $_POST['os']) Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-769983 Share on other sites More sharing options...
RyanHockey38 Posted February 24, 2009 Author Share Posted February 24, 2009 thanks i will try that Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-770145 Share on other sites More sharing options...
Q695 Posted February 25, 2009 Share Posted February 25, 2009 RyanHockey38 Irregular Online Online Posts: 3 View Profile Online Re: (No subject) « Sent to: Q695 on: Today at 07:02:28 PM » Reply with quoteQuote ReplyReply Remove this messageRemove dude what is your problem... My problem is you mailing me, not asking on the post. Quote Link to comment https://forums.phpfreaks.com/topic/146643-storing-2-values-w1radio-button/#findComment-770686 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.