Website pages problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Website pages problem

I have a two html pages 1) index.html In which there are links to options (popular, trending, newest) which is in the second page 2) options.html In this page I have three options or buttons Most popular | trending | newest These options provide different data on the front end from the database I want to click to (popular, trending, newest) that is in the first page and direct to second page with the option selected on first page and provide data from the database according that option. How can I do that Can I have to make different pages from Most popular, trending and newest? Or there is any other option ?

21st Dec 2020, 9:17 PM
Mr Robot
Mr Robot - avatar
2 Answers
+ 6
Saad Mughal If you are using PHP then you can redirect to another page with selected value as a parameter and get the data from database.
22nd Dec 2020, 3:36 AM
A͢J
A͢J - avatar
0
I Am Groot ! I am using Firebase as back end 😐
22nd Dec 2020, 9:36 AM
Mr Robot
Mr Robot - avatar