
Originally Posted by
niccol
Well, yes, that looks like a php error created by that alteration.
Without being able to look at the code of what has been added I don't think that anyone will be able to comment much further than that.
You really need to look at the error logs and try and see what those errors are.
Sorry, I can't be of much more help than that.
- I looked at the error logs in rootfolder/cache but the errors I found there dont pertain to the two concerned pages.
- which code am I going to modify for this? This is the code for the contacts page public_html/contact.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title><script type="text/javascript" src="https://spares.cncmachinery.com.au/contact-files/contact-form.js"></script>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
font-family:Arial !important;
font-size:12px;
}
#fsc_message2
{
font-family: Arial !important;
}
</style>
</head>
<body>
<?php
$contact_form = 2; // set desired form number.
$contact_form_path = '/home/cncmach/public_html/contact-files/'; // set path to /contact-files/ with slash on end.
require $contact_form_path . 'contact-form-run.php';
?>
</body>
</html>
and this is the code for the spares request page public_html/spares_request.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title><script type="text/javascript" src="https://spares.cncmachinery.com.au/contact-files/contact-form.js"></script>
</head>
<body>
<?php
$contact_form = 1; // set desired form number.
$contact_form_path = '/home/cncmach/public_html/contact-files/'; // set path to /contact-files/ with slash on end.
require $contact_form_path . 'contact-form-run.php';
?>
</body>
</html>
I used Fast Secure contact form php script version.
Thanks