Can someone have a look at this for me please...

Associate
Joined
28 Dec 2002
Posts
2,400
Location
Northern Ireland
Hi guys can someone have a look at this for me please.

What should happen is people fill in the information herehttp://www.pcsupergeeks.co.uk/careers.html

then press "submit at the bottom and it should come up and say "thankyou your information has been submitted

all this information should be emailed to an email address

Code for contact form (HTML)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>BNL Productions - Careers</title>
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if IE]>
<link href="style_ie.css" rel="stylesheet" type="text/css">
<![endif]-->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
.style1 { font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
</head>
<body>
<div class="dt main">
<div class="dr">
<div class="dc">
<div class="dt l1">
<div class="dr">
<div class="dc">
<br style="line-height:17px;">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/...rsion=ShockwaveFlash','movie','flash/newflash' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="766" height="98">
<param name="movie" value="flash/newflash.swf">
<param name="quality" value="high">
<embed src="flash/newflash.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="766" height="98"></embed>
</object>
</noscript></div>
</div>
</div>
<div class="dt l2">
<div class="dr">
<div class="dc l2_col1">
<div class="dt l2_col1_tab1">
<div class="dr">
<div class="dc">
<div style="margin-left:46px; margin-top:37px; margin-right:46px;">
<p><img src="images/careers.gif" width="87" height="19"></p>
<p align="justify">We are currently seeking students for work placement within our company who would be keen to follow a career path in the above mediums. This would be a highly participative practise and great opportunity for students to get started within this field. The placement we are offering is unpaid but as the intern's skills improve there will be paid posts introduced. </p>
<p align="justify">The dates of these placements can be discussed with us and we are flexible. If you are interested then please fill out this online application form:</p>
<p align="justify">&nbsp;</p>
<iframe src="form2.html" width="650" height="1200" scrolling="Default" frameborder="0" ></iframe>
<p><br>
</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="dr">
<div class="dc">
<div class="footerlink footertxt" style="margin-left:45px; margin-top:11px;"><a href="index.html">Home</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="who.html"> Who We Are </a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="services.html">Services</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;<a href="portfolio.html">Portfolio</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="equipment.html">Equipment</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="process.html">Process</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="careers.html">Careers</a> <a href="index-5.html"></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="contact.html">Contact Us</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="OD.html">On Demand</a><br>
</div>
<br style="line-height:16px;">
<div class="footertxt2" style="margin-left:45px;">Copyright 2008 &copy; BNL Productions. All rights reserved</div>
<div class="footertxt2" style="margin-left:45px;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

PHP code
<?PHP
global $_POST;
$firstname = $_POST["firstname"] ;
$lastname = $_POST["lastname"];
$address = $_POST["address"];
$postcode = $_POST["postcode"];
$email = $_POST["email"];
$phonenumber = $_POST["phonenumber"];
$qualifications = $_POST["qualifications"];
$employment = $_POST["employment"];
$skills = $_POST["skills"];


$to = "[email protected]";
$subject = "Form Submission";
$headers = "From: $emailaddress\n";

$message = "A visitor to your site has filled out the following information.\n
First Name: $firstname
Last Name: $lastname
Address: $address
Postcode: $postcode
Email: $email
Phone Number: $phonenumber
Qualifications: $qualifications
Employment: $employment
Skills: $skills";

if (preg_match(' /[\r\n,;\'"]/ ', $_POST['emailaddress'])) {
exit('Invalid Email Address');
}
else {
mail($to,$subject,$message,$headers);
}


?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"> <strong><font color="#333333" size="2" face="Arial, Helvetica, sans-serif">Thank
You.<br>
Your Information Has Been Submitted</font></strong></div></td>
</tr>
</table>
</body>
</html>

i am not the best at this stuff thats why im asking here
 
Back
Top Bottom