Jump to content

Advanced Select form


patchido

Recommended Posts

im not sure if i should post it in php or html. but here it goes.

 

 

im trying to do an application with dropdown selection options where one selector depends on the last, two levels this way.

 

the options are in a mysql datbase so by using php im retrieving the array for each selector, but how can i make the selectors change live depending on which option you choose without refreshing the page?

 

 

do i need something else? like javascript or something like that? i know nothing about JS

 

 

Thanks for taking your time reading this,

Edited by patchido
Link to comment
Share on other sites

Ajax is quite simple. It stands for Asychronus Javascript and XML.

 

If you want to go the exceptionally easy route, you can use jQuery. Otherwise you could look up tutorials on YouTube on how to do pure javascript AJAX (which isn't harder than jQuery, it's just got longer variable names, so it looks harder).

Link to comment
Share on other sites

maybe this helps finding the best way for me to make it,

 

 

what if i want to add more lines of selectables, something like this, when u open the first page you will see this.

 

/////////////////// /////////////////// //////////////////

choose type - choose food - choose size

////////////////// /////////////////// //////////////////

 

 

 

and there is a dropdown menu to add more lines. so if i add 2 lines ill have.

 

/////////////////// /////////////////// //////////////////

choose type - choose food - choose size

////////////////// /////////////////// //////////////////

 

/////////////////// /////////////////// //////////////////

choose type - choose food - choose size

////////////////// /////////////////// //////////////////

 

/////////////////// /////////////////// //////////////////

choose type - choose food - choose size

////////////////// /////////////////// //////////////////

 

thanks!

Link to comment
Share on other sites

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.