I have a form with two dynamic dropdowns that submit the form when an
option is chosen.  There is also a button at the bottom of the form that
submits the form.

The first drop down is a list of all customers.  The user chooses a
customer, and a query is run that populates all of the fields (mostly
text fields) of the form with that customer's data.  There is another drop
down that contains a list of all of the conferences.  I have the form
working enough that the conference in the drop down that is selected is
the conference that customer bought.  The user should be able to edit
anything, including the conference, and push the button at the bottom to
save the changes.  

So far, everything works correctly except for the second drop down - the
conference drop down.  When the user picks a new conference from the drop
down, the form submits, but the option that is selected is not the option
the user just chose, but the one that is saved in the database.  If I
change the if statement within the drop down code, I can get it to select
the new conference that the user selected, but then that particular
conference is always selected, no matter which customer is selected from
the first drop down, and it should change depending on what is in the
database.  

I am trying to create an if statement that captures exactly what needs to
happen, but I am at a loss.  Basically, any time a new name is chosen from
the drop down, the database value should be displayed.  Otherwise, the
form value should be displayed.  But I'm not sure how to determine if a
new name has been selected.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to