I am trying to find why admin is having problems updating various subscribers info (subscription dates). After looking through the company's many php files uploaded to the host, I found this page entitled 'subscriber_edit.php' which had this html code within:

<div class="container">
<?php include('include/header.php'); ?>
<div class="body">
    <?php include('include/menu.php'); ?>
    <div class="content">
        <h1>Edit Subscriber</h1>
        <?php if($error==1){echo $errMsg;}?>
        <form method="post" action="subscriber_edit.php">
            <input type="hidden" name="subscriberid" value="<?php echo $id; ?>" />
                <select name="companyid">
                        echo '<option>no companies</option>';
                        echo '<option>select company</option>';
                            $selected = $companyrow['id']==$companyid ? 'selected="selected"' : '';
                            echo '<option value="'.$companyrow['id'].'" '.$selected.'>'.$companyrow['company'].'</option>';
            <div><label>Name</label><input type="text" name="name" value="<?php echo $name; ?>" class="text" /></div>
            <div><label>Email</label><input type="text" name="email" value="<?php echo $email; ?>" class="text" /></div>
            <div><label>Extra subscriber?</label><input name="extra" type="radio" value="0" <?php if($extra==0){echo 'checked';}?> />No<input type="radio" name="extra" value="1" <?php if($extra==1){echo 'checked';}?> />Yes</div>
            <div class="clearLeft"><label>&nbsp;</label><button type="submit">Edit Subscriber</button></div>
The form style does not match the form shown on the actual website. The url of the 'edit subscriber' page is www.__.com/az/admin/subscriber-update/70/352. And by looking at the 'view page source' on browser - showed this code for the form:

<form action="/az/admin/index.php?page=**subscriber-update**" method="post"   id="formSubscriber">
So it is using the 'subscriber-update' php file, rather than the 'subscriber-edit'? I found this file (subsciber-update) which is shown below:


//make sure companyid exists
$companyid = array_key_exists("companyid",$_REQUEST) ? $_REQUEST['companyid'] :            exit('no company id');

// initiate objects
$_SUBSCRIBER = new subscriber();
$_FORMSUBSCRIBER = new formSubscriber();

  // if id exists, get data
   $data = $_SUBSCRIBER->getByID($_REQUEST['subscriberid'],$_REQUEST['companyid']);
    $_FORMSUBSCRIBER->setFormValues($data, true);
    $h1 = "Edit Subscriber";
$data = array("companyid"=>$companyid);
$_FORMSUBSCRIBER->setFormValues($data, true);
$h1 = "Add Subscriber";
<h1><?= $h1; ?></h1>

echo $_FORMSUBSCRIBER->defaultJavaScriptSetup();

So I am getting confused about where to look for the error. Apologies if this is unclear. Thanks