thanks for your thoughts saline =) that surely takes the blinders off. i can see how i can work with it to populate hidden input fields to send the id i need.
here's what i'm trying to do. i've created a web application for a tech support call center to track calls and employee production.. it also ties into online knowledge base, and other company related things.
it has been up and running for nearly a year now, and now i am working on a new version. my primary goal is to streamline the back-end.
this little bit of code is for the administrative or management level of access to add / edit agents ( the employees entering data )
currently i have a select box populated by all agents. ( active and inactive ) . i want the user to be able to choose with the radio buttons if they want a drop down list of active, or inactive agents to edit.
i could do it with php only, but that would require them to submit the page once more. so i'm going to use php to generate the javascript arrays for a more graceful interface.
why do i need to submit other information that what the user is viewing?
-- good question. the user needs to see the agent's full name to decide who to edit. to streamline my code and assure efficient data retrieval, i choose to identify each agent by an integer that is their unique id. this is why i need to pass the 'id' data .. i could care less about the names being sent.
Code:
<option value=245> Joe Schmoe </option>
that is the effect i'm trying to get, but i don't think it is possible. now with your hidden input field suggestion, i think i have a place to start again.
thanks!