Strange php results

Hi, Please help! I have a localhost folder, in xampp/htdocs/ which has both a php file (payment.php) and a
html file (sysnav.html). The sysnav file includes a statement,
<a href="http://localhost/kirkplace/payment.php">. The prob is that the file displayed is a previous
html file named payment.html. I have cleared cache, system restore, checked for and deleted any and all
other payment files and kirkplace folders. I still can’t access the current payment.php.

Are there any form action attributes or header redirects that still point to payment.html?
Does pressing Ctrl F5 help to bring up a fresh page?
In what way are you trying to go to payment.php? A link?
Can you go directly to http://localhost/payment.php Or the correct path to your file?

Why do you think it’s showing you payment.html?
Have you changed payment.php in a way that it absolutely cannot be the same?
Are you sure that localhost/ is pointing at the htdocs folder still? Or have you modified your XAMPP config to point to a different DocumentRoot?

.strong text Are there any form action attributes or header redirects that still point to payment.html? - no Does pressing Ctrl F5 help to bring up a fresh page? - no In what way are you trying to go to payment.php? A link? - If I use http://localhost/payment.html I get past file. If I go to the folder in which payment.php and payment.html are and click the form "payment.html" I now get the correct payment.html but then the result shown below Preformatted text the form code:

<head>
</head>
<body bgcolor=ccffff"><center>

record a payment


unit
<input type=“text” name=“unit” id=“unit”
Amt paid:

   <label for="datepaid">Paid yyyy-mm-dd :</label>
        <input type="text" name="datepaid" id="datepaid"><p>

            <input type="submit" name="submit" value="make a payment">
</form></body></html>
type or paste code herethe update code:
   <?php
// php update data in mysql database using PDO
if(isset($_POST['update']))
{
    try {
        $pdoConnect = new PDO("mysql:host=localhost;dbname=homedb","root","");
    } catch (PDOException $exc) {
        echo $exc->getMessage();
        exit();
    }
    
    // get values form input text and number
        $unit=$_POST['unit'];
	$amtpaid=$_POST['amtpaid'];
	$amtdue='amtdue';
$prevbal='prevbal';
$latechg='latechg';
        $datepaid=$_POST['datepaid'];

/* if no pay or part pay, add $35 to latechg field and amount not paid to prevbal field */
    if ($amtpaid < $amtdue) { $amtdue = 0; $latechg = $latechg + 35.00; $prevbal = $amtdue - $amtpaid; }
    /* if payment = amtdue */
    elseif ($amtpaid == $amtdue) { $prevbal = 0; $latechg = 0; }
    /* if over-payment subtract over-payment from prevbal */
    elseif ( $prevbal = $amtpaid - $amtdue) {$latechg = 0; }
    
    // mysql query to Update data    
    $query = "UPDATE paytbl SET amtpaid = :amtpaid, prevbal = :prevbal, latechg = :latechg, 
datepaid = :datepaid WHERE unit = :unit";    
    $pdoResult = $pdoConnect->prepare($query);    
    $pdoExec = $pdoResult->execute(array(":amtpaid"=>$amtpaid,":prevbal"=>$prevbal,":latechg"=>$latechg,
":datepaid"=>$datepaid,":unit"=>$unit));    
    if($pdoExec)
    {
        echo 'Data Updated';
    }else{
        echo 'ERROR Data Not Updated';
    }
}
?>

the output:
getMessage(); exit(); } // get values form input text and number $unit=$_POST['unit']; 
amtpaid=$_POST['amtpaid']; $amtdue='amtdue'; $prevbal='prevbal'; $latechg='latechg'; 
$datepaid=$_POST['datepaid']; /* if no pay or part pay, add $35 to latechg field and 
amount not paid to prevbal field */ if ($amtpaid < $amtdue) { $amtdue = 0; 
$latechg = $latechg + 35.00; $prevbal = $amtdue - $amtpaid; } /* if payment = amtdue */ 
elseif ($amtpaid == $amtdue) { $prevbal = 0; $latechg = 0; } /* if over-payment subtract 
over-payment from prevbal */ elseif ( $prevbal = $amtpaid - $amtdue) {$latechg = 0; } 
// mysql query to Update data $query = "UPDATE paytbl SET amtpaid = :amtpaid, prevbal = :prevbal, 
latechg = :latechg, datepaid = :datepaid WHERE unit = :unit"; $pdoResult = $pdoConnect->prepare($query); 
$pdoExec = $pdoResult->execute(array(":amtpaid"=>$amtpaid,":prevbal"=>$prevbal,":latechg"=>$latechg, 
":datepaid"=>$datepaid,":unit"=>$unit)); if($pdoExec) { echo 'Data Updated'; }else{ echo 'ERROR Data 
Not Updated'; } } ?>


Didn’t you say payment.html WAS your past file. Why are you linking to it? I thought you said you removed the html file. Remove payment.html or remane it to OLDpayment.html and set your link to payment.php as you were looking for in OP.