lghovden06 Posted August 16, 2009 Share Posted August 16, 2009 I am doing a website for a meat locker and they want to be able to have people order online, but not pay online. I set up a simple php page with input forms and a text area. They want a more detailed one where you check checkboxes of the different cuts, because some people fill out the form and type that they want all t-bones and New York strip; which is impossible, you can only get a couple of those out of a animal. I want to make it conditional: 1st when you select your meat, pork, beef,etc. it displays only the cuts for the meat selected; when checked beef only beef cuts are displayed. 2nd: certain cuts only come from one part the animal, for example a t-bone and prime rib come from the same area, so you can not get t-bones and prime ribs only one or the other. Other areas have four different cuts, example Top round steak, Bottom round steak, Round rump roast, and Eye round roast. You could get 2 or 3 of the different cuts, but not all four. So I want to make it possible to only check up to 2 or 3. I am not very good at conditional coding and anything I was doing was way off . Need HELP!!!Thank You Quote Link to comment Share on other sites More sharing options...
smerny Posted August 16, 2009 Share Posted August 16, 2009 php cannot edit a page after it is loaded, you could create php code to check and make sure it's a valid order and then tell the customer to do something different... javascript could be used to change information based on selections Quote Link to comment Share on other sites More sharing options...
lghovden06 Posted August 16, 2009 Author Share Posted August 16, 2009 javascript would be fine with me too, but i know nothing about javascript Quote Link to comment Share on other sites More sharing options...
haku Posted August 17, 2009 Share Posted August 17, 2009 Create the order form as a multi-step process. For example, on the first page, ask which type of meat they want (beef/pork), then take that response and decide which inputs to display on the next page etc. Quote Link to comment 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.