This topic is locked

Automatically Select Items from DropDown Menus

4/28/2009 11:33:53 AM
PHPRunner General questions
J
jkeagle13 author

Hello,
Two scenarios. I am building a Student Information System online. Multiple schools in the same district will use it.
I have unique username logins. I have a table that indicates which school each username is associated with. When they go to add a new record I would like for the dropdown to instantly select their name from the dropdown of all the teacher names. This saves the teacher from needing to scroll down and select their name each time.
Also, second scenario. The teachers will often need to select from other dropdown menus. If they are, for example, writing multiple evaluations for Algebra students. Algebra is a dropdown and then the list of students taking Algebra appears. They click "Save" at the bottom and it clears all the selections. Is there a way for the selections to be remembered EXCEPT for the student? The answer to this might take care of the first question as well.
Thank you,

Joseph Irvine

J
jkeagle13 author 4/29/2009

Let me rephrase it a bit.
When you push save from an "ADD" page it simply resets all of the fields, including the drop-down fields, and STAYS on the ADD page. It does not go back to the view page.
Is there a way to reprogram the "Save" button code such that it does NOT reset the drop-down fields when you push ADD?
Thank you,

Joseph Irvine

Sergey Kornilov admin 4/29/2009