Ninjakreborn Posted November 13, 2006 Share Posted November 13, 2006 I have been creating a huge form, and I came up into 2 section's that have ton's and ton's of options all under select type.I never used select much, but I know it's easy enough to use, and with the value attribute, you can set what variables they are when the time come's.[quote]"ACTION TAKENSelect all that apply."Aborted TakeoffCancelled FlightDeclared EmergencyDelayed FlightDiversionGo AroundGround Aircraft at OutstationInflight ShutdownMissed ApproachReturn Aircraft to MaintenanceReturn to GateTurnback"PHASE OF FLIGHTSelect the one most appropriate option."FuelingTowingPre FlightBoardingTaxi OutRunupTakeoffClimbCruiseHoldingDescentApproachLandingTaxi InParkingDeplanningPost Flight"CLASSIFICATIONSelect most specific option. May choose multiple if appropriate."Aircraft DamageAircraft on Runway"Aircraft Logs / Manuals / PhaseMissing, incomplete, inaccurate"Airport ClosureAlternator FailureATC DelayAvionics FailureCommunicationNavigationBatteryBird StrikeBrake FailureCollision (with aircraft or object)Crew IncapacitationDebris on RunwayDeviation of ATC InstructionsDisruptive / Sick PassengerDoor WarningDoor OpeningElectrical FailureEmergency EvacuationEngine FailureEngine FireFire / Smoke in CabinFlap FailureFlat TireFlight Control FailureFuel LeakFuel QuantityHard LandingIcingInstrument FailureFlight InstrumentEngine InstrumentLanding GearBlow DownFail to ExtendFail to RetractHydraulic LeakHydraulic System FailureIndication FailureLightening StrikeMagneto (failed or rough)Near Mid-Air CollissionPax InjuryProp StrikeRough EngineRunway IncursionStarter (failure or warning)Tail StrikeTurbulenceVacuum FailureWake TurbulenceWeather Below MinimumsWeather Below High MinimumsWeight and BalanceWind ShearOther[/quote]Those are the one's I am creating, they will be 3 different sections. The top, and bottom are checkbox's, the middle type will be a select box which is easy, so the 2 I am having problem's with are action taken, and classification.These 2 specifically have to be checkbox's, because they have to be able to select multiple choice.This was suppose to be a simple project, and I would like to keep it simple if possible, as simple as I can atleast.At this point, it's a large time consuming process to create the select box's however it's just time consuming, not hard. Even though I might use tables to lay out that section since it's backend, and since it's easier to get them set right, that is no problem.The problem I am having now is collecting/databasing the information.I could pick up each one, one at a time and see if the value is there.The only thing is, I want to be able to database it, if I have 1 field for each option, set to true or false, that will take forever. because I also need to create things to search the the data, and edit that data at a later date. Any advice would be appreciate.Primarily I had 2 idea's as far as databasing/database structure1. Have 1 field for each option, and have it set to true or false. Then just allow her to search by a preset list, and if she search's by that, she search's wherever that specific thing is true, or something similar. Or 2. I was thinking of saving them all in one field, seperated by comma's all the one's that pertained to the record would all be recorded together jsut seperated by comma's in a specific field. I also need a good idea as far as how to collect the data, I could test for each and every variable name for checkbox and just pick up whichever one's are there, but that's definitely the long way around, especially when I am going to need to be able to possibly edit/change this information if needed. Link to comment https://forums.phpfreaks.com/topic/27107-checkbox-processing/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.