Jump to content

Recommended Posts

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.
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 statement

if ($prop <> "Bungalow") {Display Select Number of floors} else {}


This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.