Manhag Posted December 6, 2012 Share Posted December 6, 2012 i want to make a nested select-boxes i tried this tutorial and it works www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/ i want to store the result to database so i the user enter the site again...he will find the selection he did is it possible ? thanks Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/ Share on other sites More sharing options...
Christian F. Posted December 6, 2012 Share Posted December 6, 2012 Yes, it is. You'll need some way to identify the user, but other than that it's pretty basic. Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397774 Share on other sites More sharing options...
Manhag Posted December 6, 2012 Author Share Posted December 6, 2012 i stored the selection to database but i want to show the selection for that user in the next time he enters the site Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397776 Share on other sites More sharing options...
BrettHartel Posted December 6, 2012 Share Posted December 6, 2012 There are two options. You could have them sign-up for your site to store the data in a database or create cookie that will last a certain amount of time (say a year). The database would be perminent while the cookie would be temporary. You should read the tiles of HTML, CSS, Javascript, PHP, and MYSQL at www.w3schools.com then come back here and ask questions so you understand the basics. That is how I started learning. I just finished setting up a database and now my site can let people sign-up and delete their accounts. Pretty basic stuff, but super fun to learn! Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397808 Share on other sites More sharing options...
Beeeeney Posted December 6, 2012 Share Posted December 6, 2012 You should read the tiles of HTML, CSS, Javascript, PHP, and MYSQL at www.w3schools.com lol wut Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397811 Share on other sites More sharing options...
Manhag Posted December 6, 2012 Author Share Posted December 6, 2012 There are two options. You could have them sign-up for your site to store the data in a database or create cookie that will last a certain amount of time (say a year). The database would be perminent while the cookie would be temporary. You should read the tiles of HTML, CSS, Javascript, PHP, and MYSQL at www.w3schools.com then come back here and ask questions so you understand the basics. That is how I started learning. I just finished setting up a database and now my site can let people sign-up and delete their accounts. Pretty basic stuff, but super fun to learn! thanks already the user is registered in the site how can i show the selection value ?? Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397819 Share on other sites More sharing options...
Beeeeney Posted December 6, 2012 Share Posted December 6, 2012 thanks already the user is registered in the site how can i show the selection value ?? Don't go to w3schools.com to learn anything. Some of it is bad information. Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397821 Share on other sites More sharing options...
Christian F. Posted December 6, 2012 Share Posted December 6, 2012 Echo out the value in the value attribute of the input element. This is pretty basic stuff, so since you're confused about it I would recommend you to read more up on HTML and PHP. Link to comment https://forums.phpfreaks.com/topic/271658-save-selection-select-boxes-to-database/#findComment-1397822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.