We have a roster/member section of our website with a form to input new members. The main part of the form seems to work fine - it records the info to the DB and displays to results in the web page. The problem is, there is part of the input/edit form that is supposed to let you add an ancestor and generation to the info. When you click the link, the little two field form pops up. After you fill in the fields and tell it to save, the main form jumps, but the info is not displayed and, as far as I can tell, it doesn’t get saved to the DB. This is PHP was set up in 2006, so it may be that it doesn’t like the newer PHP version, but I’m just guessing. Here are the last few lines of the file. Can anyone see anything wrong with it? Where should I be looking?
[code]###################################################
function add_ancestor_tomember()
{
$R=DIN_ALL($_REQUEST);
print <<<EOM
EOM
;
}
#################################################
function save_ancestor()
{
$R=DIN_ALL($_REQUEST);
$SQL=“INSERT INTO ancestor (anc_name,anc_gen)
VALUES (’$R[anc_name]’,’$R[anc_gen]’)”;
$_REQUEST[mem_id]=ei($SQL);
view_member(“Member’s details saved successfully”);
}
?>[/code]