Hi
I am new to PHP. I have inherited a site. One of the pages has a 'Register Interest' button, screen attached.
All the relevant code, as far as I can see, is given below at the end across various files.
My question is where is the code that gets executed when 'Register Interest' button is clicked?
Thanks
Regards
future_jobs.php
---------------
<?php include 'template/header.php'; ?>
<!-- BEGIN TITLE -->
<h1 class="post-title-margin">Future Jobs</h1>
<!-- END TITLE -->
<!-- BEGIN CONTENT -->
<div class="entry-content">
<?php
$dataAccess = Core::getInstance();
$futureJobs = $dataAccess->GetUpcomingJobs($_SESSION['username'],$_SESSION['password']);
echo $futureJobs;
?>
</div>
<!-- END CONTENT -->
<?php include 'template/footer.php'; ?>
dataacess.php
-------------
public function GetUpcomingJobs($username, $password){
$crypt = new proCrypt;
$params = new stdClass();
$decryptedUsername = $crypt->decrypt($username);
$decryptedPassword = $crypt->decrypt($password);
$client = new SoapClient("http://staff.domain.tld/mobile/mobilewebservice.asmx?wsdl");
$params->Username = $decryptedUsername;
$params->Password = $decryptedPassword;
$result = $client->GetUpcomingJobs($params)->GetUpcomingJobsResult;
$resultTransform = $this->TransformXml($result, 'includes/ServiceResultTransform.xsl');
$resultTransform = str_replace('@@username@@', $decryptedUsername, $resultTransform);
return $resultTransform;
}
Screen.png