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,

Link to comment
https://forums.phpfreaks.com/topic/274834-advanced-select-form/
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).

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!

Archived

This topic is now archived and is closed to further replies.

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