Hey everyone,
I am coding a script for a nonprofit I work for. I have done this before but it was many many moons ago. Basically, I have a portion of the site called "InfoMaster" which tracks, enrolls and unenrolls our volunteers. This piece of the system has the landing page which lists all active volunteers, and has a hyperlink for the name so you can go to the InfoMaster Overview Page, which shows an individual volunteer. From there, you can edit the Info by clicking the "Edit Info" link. This page is sys_volup.php. It pulls the information and two of the fields are dropdowns. One for Grade and one for Free Block. The values for this will be coded into the script and not kept in the database as there is only up to 5 values for each. What I need to happen though, is when the edit page populates, it selects the current value (from the database - e.g. Grade is 12), and use this on the dropdown as the select value, so that way if you do not edit that field, it doesn't change to the default value of "10" when you submit the form.
The code isn't written yet for this small piece, I just need to know what I need to put in. If you need any information from me let me know. Values are pulled using:
.$infomaster['grade'].
Grades are Ten, Eleven and Twelve.
Thanks!