playaz Posted July 11, 2006 Share Posted July 11, 2006 Hi guys,I am developing site in PHP/MySQL for an estate agent - During the sign up process when users enter details for their property I want the form to 'hide' fields that are not relevant depending upon what the user has selected in the form.For instance, I have a form currently which includes all the property details - if a user selects his/her property as a 'Bungalow' in a drop-down menu, then I want to hide the drop-down menu below in the form for 'number of floors', as obviously a bungalow will only have a ground floor.Can anyone suggest how this would be done using any techniques.Feel free to ask me more questions if your unsure of what i'm trying to achieve. Quote Link to comment https://forums.phpfreaks.com/topic/14292-showhide-fields-depending-on-user-selection/ Share on other sites More sharing options...
jvrothjr Posted July 11, 2006 Share Posted July 11, 2006 I have a form setup close to the idea your looking for But I have the form biuld as the chooses are made. Mine build Inventory Part numbers as chooses are made options for the last choose are displayed.They have to select the type of "Property" they wish and based on that what is displayed next. for example I would have a if statementif ($prop <> "Bungalow") {Display Select Number of floors} else {} Quote Link to comment https://forums.phpfreaks.com/topic/14292-showhide-fields-depending-on-user-selection/#findComment-56219 Share on other sites More sharing options...
nogray Posted July 11, 2006 Share Posted July 11, 2006 take a look at thishttp://www.phpfreaks.com/forums/index.php/topic,95771.msg383392.html#msg383392 Quote Link to comment https://forums.phpfreaks.com/topic/14292-showhide-fields-depending-on-user-selection/#findComment-56276 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.