Guest Posted April 6, 2008 Share Posted April 6, 2008 ok i have a weird problem, i don't know how to explain it so here is my situation: I have a page to add events on a calendar for music shows (a form with a submit button)... On this page, the users adding an event must select the bands from a listbox. This listbox displays the bands from a table in my database. If a band present in this show is not listed, the users can click a link that will open a popup (i can put it on the same page too), and they can add a band to the database, so it will be listed with the others in the listbox. My problem is that after the band is added to the database, my users dont see it in the listbox unless they refresh the page, and if they do they will loose all datas they entered (descriptions, flyer, date, category, etc) How could I avoid this? I thought about javascript, but since the content of the listbox is from a SQL query, it won't work right? I thought about putting the listbox inside a iFrame, but then it won't be included in the form since it's a different page... any suggestions? Link to comment https://forums.phpfreaks.com/topic/99887-refresh-listbox-when-new-data-is-found-in-database/ Share on other sites More sharing options...
Guest Posted April 8, 2008 Share Posted April 8, 2008 bumppppppp Link to comment https://forums.phpfreaks.com/topic/99887-refresh-listbox-when-new-data-is-found-in-database/#findComment-511761 Share on other sites More sharing options...
Guest Posted April 9, 2008 Share Posted April 9, 2008 any ideas?! Link to comment https://forums.phpfreaks.com/topic/99887-refresh-listbox-when-new-data-is-found-in-database/#findComment-512679 Share on other sites More sharing options...
Guest Posted April 12, 2008 Share Posted April 12, 2008 help? Link to comment https://forums.phpfreaks.com/topic/99887-refresh-listbox-when-new-data-is-found-in-database/#findComment-515357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.