PHP Developers Network
http://forums.devnetwork.net/

Selecting categories using select html
http://forums.devnetwork.net/viewtopic.php?f=50&t=138840
Page 1 of 1

Author:  bagi [ Tue Dec 03, 2013 12:37 pm ]
Post subject:  Selecting categories using select html

Hello all,
I'm creating an internet shop and when an user will add a stuff, he will select category. I think that create <optgroup> is bad idea (you understand why). Because I wanna create <select> where user will choose general category and after that near with selected category should shows other select with subcategories (if they are). And i have two ways to do it
1) Create first select using php and after create others using javascript ajax (request from server subcategories)
2) Using php output into page all categories and after choosing general category, somehow create select with subcategories

What do u think? Or there is an another better way?

Author:  Christopher [ Wed Dec 04, 2013 10:41 pm ]
Post subject:  Re: Selecting categories using select html

I think Ajax is probably the best way to generate sub-<select>s

Author:  CoursesWeb [ Mon Dec 09, 2013 1:01 pm ]
Post subject:  Re: Selecting categories using select html

Hi
Try look on the net for: "Multiple select dropdawn with ajax" , there are some good tutorials and script to make those select lists.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/