HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/frenchlanguagelessons.co.uk/public_html/contactus.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>french Language Lessons - Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<link href="frenchlessons_contact.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
  var __lc = {};
  __lc.license = 1079212;

  (function() {
    var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
    lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
  })();
</script></head>
<body bgcolor="#FFFFFF">
<div id="wrapper">
  <div id ="header"> <a href="index.html"><img src="images/bar2.gif" alt="french language lessons " width="800" height="75" border="0" usemap="#Map" />
<map name="Map" id="Map">
  <area shape="rect" coords="769,24,796,45" href="contactus.php" alt="email french lessons" />
</map></a>
    <div id="topnav">
      <div align="right"><a href="index.html">Home</a> | <a href="contactus.php">Contact</a> | Site Updated:
        <script type="text/javascript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="April";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write(lmonth + " ");
document.write(date + ", " + year);
// End -->
      </script>
      </div>
    </div>
    <div id="navcontainer">
      <ul class="style1" id="navlist">
        <h1><a href="frenchlanguagelessons.html">French Language Lessons </a></h1>
        <li id="active"><a href="french_lessons_beginners.html" id="current">Beginner French Lessons </a></li>
        <li> <a href="post_beginners.html">Post Beginner French </a></li>
        <li> <a href="intermediate.html">Intermediate French <br />
          Lessons</a></li>
        <li><a href="gcse_french.html">GCSE French Revision</a></li>
        <li><a href="a-level.html">A-Level French</a></li>
        <li><a href="frenchforchildren.html">French For Children </a></li>
        <li> <a href="frenchforfamilies.html">French for all the Family</a></li>
        <li> <a href="frenchforfamilies.html">French for small groups</a></li>
        <li> <a href="advanced_french_lessons.html">Advanced French Lessons</a></li>
        <li> <a href="intensive_french.html">Intensive French Course</a></li>
      </ul>
    <h2><a href="teachers.html" target="_blank"><br />
        <img src="images/bbc-logo.jpg" alt="french lessons for the bbc" border="0" /></a><br />
        Conversation Piece Ltd supply French language lessons <br />
        to the BBC</h2>
      <p><img src="images/traintogain.jpg" alt="" width="100" height="52" /></p>
      <p><a href="contactus.php"><img src="images/book_french_lesson.gif" alt="french language Lesson offer" width="130" height="62" border="0" /></a><br />
      </p>
    </div>
    <div id="mainfeature">
  <h1>Contact Conversation Piece Ltd</h1>
  <p>To book your lessons, download the Client query form here  and email it to: <a href="mailto:des@conversation-piece.co.uk">des@conversation-piece.co.uk</a></p>
<p><strong>Download Query Form from here: <a href="client-query-form.doc">DOWNLOAD FORM</a></strong></p>
<p>or  feel free to contact Conversation Piece by telephone on 020 8337 1959 or send us an email using the form below. We will answer your French enquiry within 24 hours.</p>
  <p>    
    <?php
								  
								// Variables ie the name of all imputs used in the includes/contact_from.php							  
									
									$name = $_POST['name'];
									$email = $_POST['email'];
									$telephone = $_POST['telephone'];
									$company = $_POST['company'];							
									$postcode = $_POST['postcode'];									
									$enquiry = $_POST['enquiry'];
									$mobile = $_POST['mobile'];
									$language = $_POST['language'];
									$submit = $_POST['submit_form'];
									
								// End Variables
								
								// begin form validation and email functions
									
									if (isset($_POST['submit_form'])) {// check the form has been submitted
									
										$errors=array(); //initialise errors array
										
												//validate form fields
													if (empty($name)) {
													$errors[]=' You forgot to enter your name';
													} 
													
												
													if (empty($telephone)) {
													$errors[]=' You forgot to enter your telephone number';
													} 
			
													//check for email
													if (empty($email)) {
													$errors[]='You forgot to enter your email address';
													} elseif (!ereg("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,6})$",strtolower($email))) {
													$errors[]='That email address is not valid, please use another.';
													}
													
											if(empty($errors)) {// if everything is ok ie: no errors, then proceed with the thank you message

												echo'<br /><p> <b>Thank you '.$name.' for contacting Conversation Piece Ltd.</b>										<p>Your enquiry was successfully submitted and we will be in contact with you shortly to discuss your french tuition</p><br />
												<p>Conversation Piece Ltd  Tel:020 8944 8393 <b>You Client Account Manager is Emma</b></p>';
												
											// Set the enquiry email 
										
												$recipient = "des@conversation-piece.co.uk";
												
												$subject = "french Language - Enquiry";
										
												$message = "You have received the following enquiry from your website: \n\n"; 
												$message .= "Name: $name \n";
											  	$message .= "Email: $email \n";
												$message .= "Telephone: $telephone \n\n";
												$message .= "Mobile: $mobile \n\n";
												$message .= "Postcode: $postcode \n\n";
												$message .= "Company: $company \n\n";
												$message .= "french level: $language \n\n";
												$message .= "Reason for learning: $learning \n\n";
												$message .= "Enquiry: $enquiry \n";
										
										   		$headers = "From: <{$_POST['email']}> \n";
												$headers .= "Reply-To: <{$_POST['email']}>";
												
											
											// end the enquiry email
											
											// begin the enquiry mail function										
											if (mail($recipient,$subject,$message,$headers)) {
											
											// end the enquiry mail function		 
													
											// begin the automatic email function to the user
											
											$recipient2 = "$email";
											$subject2 = "Learning french";
											
											$message2 = "Thank you $name for contacting Conversation Piece. \n\n";
											$message2 .= "We will contact you shortly, alternatively call 020 8944 8393, Mon-Sun 9.00-5.00\n\n";
											$message2 .= "\n\n";
											$message2 .= "We look forward to working for you";
														
											if(mail($recipient2, $subject2, $message2, $headers)) {
											; }
										   // end the automatic email function
												
											} else {
											echo "<p>Sorry, there was an error and your mail was not sent. Please contact us using the telephone number .</p>";
										}
												include('includes/footer.html');
												exit();
												 
										//report errors
										}else {
										echo'<br /><p><b><font color="#FF0000">The following error(s) occured:</font></b> <br /><br />';
										foreach($errors as $msg) {
										echo " <font color='#FF0000'>* $msg </font><br /> \n";
										}
										echo ' </p><br /> Please try again</p><br />';
										include('includes/contact_form.php');
										}
									
									}else {// END check the form has been submitted
									echo'';
									include('includes/contact_form.php');

							}
						
								  
								   ?>
  </p>
  <div id="wrapper"></div>
  </label>
</div>
</div><div id="footer">
      <div align="left"><a href="../index.html">Home</a> | <a href="contactus.php">French for Beginners</a> | <a href="../intermediate.html">Intermediate French</a> | <a href="../advanced_french_lessons.html" title="See our different language courses">Advanced French lessons</a>| <a href="../frenchforchildren.html">French for children</a> | <a href="../contactus.php">Contact</a><br />
        <br />
Conversation Piece Ltd  | Ravensbury Terrace&nbsp;|&nbsp;London SW18 4RL 
      | <strong>Tel:020 8337 1959</strong> |<a href="../contactus.php"><br />
      </a> <br />
&copy;1990 - 2012 Conversation Piece Ltd <strong>&quot;French Language Lessons&quot;</strong></div>
</div></div>
</body>
</html>