Jump to content

Input form with contidional statements


lghovden06

Recommended Posts

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 :confused:. Need HELP!!!Thank You

Link to comment
https://forums.phpfreaks.com/topic/170459-input-form-with-contidional-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.