danoli Posted January 26, 2007 Share Posted January 26, 2007 Hope the subject made a little sense...I am trying to build a page that uses a drop down to select a student from a table.When the student is selected, I want the students username to be resubmitted to the same page to start another query that then builds the table of data to be displayed. Then selecting a different student will display the different data set.I have it working without the dropdown. A student visits the page and a session variable $USERNAME is used to query the database building the table for the signed in student. I just need to get my had round the submit in the dropdown.This is how I see it working schematically[code]TopIs a 'dropdown' variable setIf yes, use it to query database and build table clear dropdown variableDisplay dropdown (which uses another query to get list), wait for a selection, set 'dropdown' variable and resubmit the pageGoto top.[/code]If only scripting/programming was that easy :)Any tips or pointers to simillar code appreciated Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/ Share on other sites More sharing options...
fenway Posted January 26, 2007 Share Posted January 26, 2007 Sounds like a job for AJAX. Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/#findComment-169600 Share on other sites More sharing options...
danoli Posted January 26, 2007 Author Share Posted January 26, 2007 Who is that? Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/#findComment-169784 Share on other sites More sharing options...
fenway Posted January 26, 2007 Share Posted January 26, 2007 Check out the AJAX Help forum. Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/#findComment-169939 Share on other sites More sharing options...
danoli Posted February 17, 2007 Author Share Posted February 17, 2007 I have just found the AJAX forum, I didn't know what you were refering to. After looking in the forum, I am still none the wiser what AJAX is and how it relates to what I need. Ta. Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/#findComment-186796 Share on other sites More sharing options...
fenway Posted February 18, 2007 Share Posted February 18, 2007 Unfortunately, I know very little about it... I suggest you start a new post there. Link to comment https://forums.phpfreaks.com/topic/35756-submit-via-drop-down-to-re-query/#findComment-187606 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.