1
There is a form used to edit an item in the Alumni module (modlisting.php) which includes a drop-down menu of the available categories.
Around line 157:
$mytree->makeMySelBox("title", "title", $cide);
When the form is viewed, it renders options, e.g.
Main category
-- Sub cat one
-- Sub cat two
The selected option is displayed based on retrieving $cide.
My problem is this:
When a NEW item is created, it's category name is recorded in the DB in a row 'school'. If a user edits the item and changes the category, the item appears correctly under the new category heading. The problem is that the 'school' row in the DB is not updated.
I can see how to achieve this in modlisting.php except for one thing... I don't know how to get the
text of the new selected menu option into a variable.
In essence, I need:
$school = $_POST['text of the new menu choice'];
Can anyone help?
A thread is for life. Not just for Christmas.