Jump to content

#include files not being picked up


mikebyrne

Recommended Posts

I've just changed my .shtml file to .php but the #include files don't seem to be picked up? Any idea what I can do to solve this?

 

 

<?php

function curPageURL() {



$pageURL = 'http';



if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}



$pageURL .= "://";



if ($_SERVER["SERVER_PORT"] != "80") {





$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];



} else {





$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];



}



return $pageURL;
}
// The form was submitted //
if (isset($_POST['button'])) {



if (isset($_REQUEST['name']) && $_REQUEST['name'] != '' && isset($_REQUEST['email']) && $_REQUEST['email'] != ''){


$fun = array(


'virusandmalwareremoval',


'fullservice',


'quickfix',


'upgrade',

'xbox360drivereplacement',

'xbox360laserreplacement',	

'xbox360rrodrepair',

'ps3drivereplacement',

'ps3laserreplacement',

'ps3ylodrepair',

'databackup',	

'websites',

'datarecovery',

'networkinstallation',

'mobilephoneissues',

'emailconfiguration'

);



foreach ($fun as $value) {

${$value} = (isset($_REQUEST[$value]) ? $value . "\n" : '');

}

$name = $_REQUEST['name'];





$email = $_REQUEST['email'];





$enquiry = $_REQUEST['enquiry'];










if (ereg("[\r\n]", $name) || ereg("[\r\n]", $email)) {







header( "Location: http://www.parkersmedia.com/byrne" );





}










$mailcontent = "Name: ".$name;





$mailcontent.= "\n\nEmail: ".$email;





$mailcontent.= "\n\nInterested in: \n". $virusandmalwareremoval . $fullservice . $quickfix . $upgrades . $xbox360drivereplacement . $xbox360laserreplacement . $xbox360rrodrepair . $ps3drivereplacement . $ps3laserreplacement . $ps3ylodrepair . $databackup . $websites . $datarecovery . $networkinstallation . $mobilephoneissues . $emailconfiguration;





$mailcontent.= "\n\nEnquiry: " . $enquiry;





if (mail( "info@byrnecomputingservices.ie", "Enquiry from Byrne Computing Services","$mailcontent", "From: $name <$email>" )) {







header( "Location: http://www.parkersmedia.com/byrne/thankyou.shtml" );





} else {







echo 'Mail not sent';





}



} else {





echo 'Required fields are empty';



}
}

?>
<!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>Byrne Computing Services</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="inc/jquery.js"></script>
<script type="text/javascript" src="inc/easySlider.js"></script>
<script type="text/javascript">



$(document).ready(function(){








$("#slider").easySlider();



});




</script>
</head>

<body>
<div id="wrapper">



<!--#include file="inc_header.html" -->
  <!--#include file="inc_scrollingimages.html" -->
  <div id="boxesholder">
    <!--#include file="inc_specials.html" -->
  <div id="main">
    <div id="mainheader">
    



Contact Us</div>
  



<div id="maincontent2">
  



  <h2>Fill in the form below and we will contact you shortly.</h2>
  



  <p><img src="images/binarycode.jpg" alt="Binary Code" width="167" height="600" class="images" /><form id="form1" name="form1" method="post" action="contact-us.php">
  



    <strong>Name: </strong><br />



      <input name="name" type="text" class="formsingle" id="name" />
        <br />
        <br />
        <strong>Email:</strong><br />
        <input name="email" type="text" class="formsingle" id="emailaddress" />
        <br />
        <br />
        <strong>Interested in:</strong><br />
  



    <table border="0" cellspacing="0" cellpadding="0" class="table">
  



      <tr>
  



        <td class="interestedin"><strong>Computer Repair</strong></td>
  



        <td class="interestedin"><strong>Console Repair</strong></td>
  



        <td class="interestedin"><strong>Other Services</strong></td>



        </tr>
  



      <tr>
  



        <td class="interestedin">
  



          <input name="virusandmalwareremoval" type="checkbox" class="formcheckbox" id="virusandmalwareremoval" value="virusandmalwareremoval" />
  



          <label for="virusandmalwareremoval">Virus and Malware Removal</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="xbox360drivereplacement" type="checkbox" class="formcheckbox" id="xbox360drivereplacement" value="xbox360drivereplacement" />
              <label for="ps3drivereplacement">Xbox 360 Drive Replacement</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="databackup" type="checkbox" class="formcheckbox" id="databackup" value="databackup" />
              <label for="databackup">Data Backup</label>
  



        </td>



        </tr>
  



      <tr>
  



        <td class="interestedin">
  



          <input name="fullservice" type="checkbox" class="formcheckbox" id="fullservice" value="fullservice" />
              <label for="fullservice">Full Service</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="xbox360laserreplacement" type="checkbox" class="formcheckbox" id="xbox360laserreplacement" value="xbox360laserreplacement" />
              <label for="ps3laserreplacement">Xbox 360 Laser Replacement</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="websites" type="checkbox" class="formcheckbox" id="websites" value="websites" />
              <label for="websites">Web Design</label>
  



        </td>



        </tr>
  



      <tr>
  



        <td class="interestedin">
  



          <input name="quickfix" type="checkbox" class="formcheckbox" id="quickfix" value="quickfix" />
              <label for="quickfix">Quick Fix</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="xbox360rrodrepair" type="checkbox" class="formcheckbox" id="xbox360rrodrepair" value="xbox360rrodrepair" />
              <label for="ps3ylodrepair">Xbox 360 RROD Repair</label>
  



        </td>
  



        <td class="interestedin">
  



          <input name="datarecovery" type="checkbox" class="formcheckbox" id="datarecovery" value="datarecovery" />
              <label for="datarecovery">Data Recovery</label>
  



        </td>



        </tr>
  



      <tr>
  



        <td class="interestedin">
  



          <input name="upgrades" type="checkbox" class="formcheckbox" id="upgrades" value="upgrades" />
  



          <label for="upgrades">Upgrades</label>



          </td>
  



        <td class="interestedin"><input name="ps3drivereplacement" type="checkbox" class="formcheckbox" id="ps3drivereplacement" value="ps3drivereplacement" />
  



          <label for="ps3drivereplacement">PS3 Drive Replacement</label></td>
  



        <td class="interestedin">
  



          <input name="networkinstallation" type="checkbox" class="formcheckbox" id="networkinstallation" value="networkinstallation" />
  



          <label for="networkinstallation">Network Installation</label>



          </td>




        </tr>
  



      <tr>
  



        <td> </td>
  



        <td class="interestedin"><input name="ps3laserreplacement" type="checkbox" class="formcheckbox" id="ps3laserreplacement" value="ps3laserreplacement" />
  



        PS3
  



          <label for="ps3laserreplacement"> Laser Replacement</label></td>
  



        <td class="interestedin">
  



          <input name="mobilephoneissues" type="checkbox" class="formcheckbox" id="mobilephoneissues" value="mobilephoneissues" />
  



          <label for="mobilephoneissues">Mobile Phone Issues</label>



          </td>



        </tr>
  



      <tr>
  



        <td> </td>
  



        <td class="interestedin"><input name="ps3ylodrepair" type="checkbox" class="formcheckbox" id="ps3ylodrepair" value="ps3ylodrepair" />
  



          <label for="ps3ylodrepair">PS3 YLOD Repair</label></td>
  



        <td class="interestedin">
  



          <input name="emailconfiguration" type="checkbox" class="formcheckbox" id="emailconfiguration" value="emailconfiguration" />
  



          <label for="emailconfiguration">Email Configuration</label></td>



        </tr>



      </table>
  



    <br />
  



    
  



    <strong>Enquiry: </strong><br />
        <textarea name="enquiry" class="formmulti" id="enquiry"></textarea>
        <br />
        <br />
        <input type="submit" name="button" id="button" value="Submit" />
      </form>
      </p>
  



  
  



  <p><br />



    </p>
  



</div>
  </div>
</div>
  <!--#include file="inc_offers.html" -->



<!--#include file="inc_footer.html" -->
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.