I have a form that insert information on the database and I have a drop down menu that I need to validate call ORDERLIFT. If the users picks an item of this menu they need to field out a text box call OrderLiftHeight and they also have to check a checkbox call LiftPrescription; they also need to pick on of the radio button call OrderLiftSide. Needs to validate only if the user picks something out of the drop down.
if (!empty($POST[ORDERLIFT]) && !empty($POST[OrderLiftHeight]) ETC.. ){
good }else{ bad spit out error }
i would be inclined to validate this client side also perhaps only making the boxes appear when the appropriate orderlift is selected.
How do I go about doing so? To show all the other when ORDERLIFT is selected?
dagon;10913037 wrote:if (!empty($POST[ORDERLIFT]) && !empty($POST[OrderLiftHeight]) ETC.. ){ good }else{ bad spit out error } i would be inclined to validate this client side also perhaps only making the boxes appear when the appropriate orderlift is selected.
taps;10913040 wrote:How do I go about doing so? To show all the other when ORDERLIFT is selected?
javascript, not my area but i find jquery easy to work with
Can some one help me on this one?