The short version is I have a PHP script that doesnt work!! - I hired a programmer from Hungary (In Europe) to develop a Quote Form for my website. The form looks great and works perfectly when its hosted on his server in Hungary, but when its put live on my website (hosted by FastHosts in the UK) - after clicking the submit button you get a "500 - Internal server error." message. Fasthosts have put up a test PHP script that works so they said its an issue with the script - please see the script below, any help would be greatly appreciated. I am aware that the e mail address is 123@123.com "this is for SPAM bot purposes".
Code: Select all
<!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></title>
<meta name="Description" content="" />
<meta name="keywords" content="" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<!-- SPECIAL OFFER BUTTON COPY FROM HERE -->
<link rel="stylesheet" type="text/css" href="css/style-projects-jquery.css" />
<!-- jQuery lightBox plugin -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
<!-- / jQuery lightBox plugin -->
<script type="text/javascript">
$(function() {
$('#box a').lightBox();
});
</script>
<!-- END OF SPECIAL OFFER BUTTON COPY TO HERE -->
</head>
<body>
<!-- SPECIAL OFFER BUTTON COPY -->
<div id="box"> <a href="images/offerlarge.jpg" title="Special Offer">
<img src="images/offer_button.png" alt="Click here to view our special offer" border="0" /></a>
</div>
<!-- END SPECIAL OFFER BUTTON -->
<div id="container">
<div id="topPan">
<ul class="menu">
<li class="b01"><a href="index.html" title="home page">home page</a></li>
<li class="linem"></li>
<li class="b02"><a href="about.html" title="about us">about us</a></li>
<li class="linem"></li>
<li class="b03"><a href="services.html" title="services">services</a></li>
<li class="linem"></li>
<li class="b04"><a href="solutions.html" title="solutions">solutions</a></li>
<li class="linem"></li>
<li class="b05"><a href="contacts.html" title="contacts">contacts</a></li>
</ul>
<div id="follow">
<h2></h2>
<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=xa-4bcda8ab7dc0ca94"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="105" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4bcda8ab7dc0ca94"></script>
<!-- AddThis Button END -->
<div class="clear"></div>
</div>
<img src="images/logo.jpg" alt="" name="logo" width="692" height="70" id="logo" /></div>
<div id="content_frame">
<div id="headerPan">
<div id="mainimg"><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNzE3NzA1MzIzMjAmcHQ9MTI3MTc3MDU2MzIyNCZwPTQ1NTkzMiZkPSZnPTEmbz**M2E3OWNjNDMyNzA*OWZhOGY5/OWQwYTU3NGYzNDhkNiZvZj*w.gif" /><object type="application/x-shockwave-flash" data="http://files.bannersnack.net/app/swf2/EmbedPlayerV2.swf?hash_id=ca3cd8ee16d81a0c2eca94367b462315&watermark=0&bgcolor=#333333&clickTag=null" width="465" height="309"><param name="movie" value="http://files.bannersnack.net/app/swf2/EmbedPlayerV2.swf?hash_id=ca3cd8ee16d81a0c2eca94367b462315&watermark=0&bgcolor=#333333&clickTag=null"><param name="allowFullScreen" value="true"><param name="bgcolor" value="#333333"><param name="allowScriptAccess" value="always"></object></div>
<div id="header_links">
<a href="quick_quote.html" title="Quick Quote Photocopier"><img src="images/quote.jpg" alt="More info" width="228" height="77.25" border="0" /></a>
<a href="brands.html" title="Photocopiers"><img src="images/copier.jpg" alt="More info" width="228" height="77.25" border="0" /></a>
<a href="consumables.html" title="Consumables"><img src="images/consumablesb.jpg" alt="More info" width="228" height="77.25" border="0" /></a>
<a href="computers.html" title="Computers"><img src="images/computersb.jpg" alt="More info" width="228" height="77.25" border="0" /></a>
</div>
<div class="clear" style="height:10px"></div>
</div>
<div id="content">
<div id="c1">
<div id="thanks">
<h2></h2>
<p><img src="images/thanks.jpg" width="655" height="300" alt="" /></p>
<p></p>
<p></p>
<div class="clear" style="height:12px"></div>
<div class="clear"></div>
</div>
<a href="brands.html" title="Photocopiers"><img src="images/ad_biz10.jpg" alt="Photocopiers"" width="693" height="79" border="0" class="business10" /></a>
<div class="clear"></div>
</div>
<div id="c2"></div>
<div class="clear" id="end_c"></div>
</div>
</div>
<div id="footer">
<p><a href="index.html">HOME</a> | <a href="about.html">ABOUT US</a> | <a href="services.html">SERVICES</a> | <a href="solutions.html">SOLUTIONS</a> | <a href="links.html">LINKS</a> | <a href="copier_jargon_guide.html">COPIER JARGON</a> | <a href="copier_blog.html">BLOG</a> |<a href="contacts.html">CONTACTS</a><br/>
<span>Copyright & copy; Business</span></p>
</div>
</div>
<?php
$copytype = $_POST['copytype'];
$copyspeed = $_POST['copyspeed'];
$printing= $_POST['printing'];
$faxing= $_POST['faxing'];
$scanning= $_POST['scanning'];
$sorting= $_POST['sorting'];
$stapling= $_POST['stapling'];
$binding= $_POST['binding'];
$none= $_POST['none'];
$payment = $_POST['payment'];
$stage = $_POST['stage'];
$other = $_POST['other'];
$companyname = $_POST['companyname'];
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['tel'];
$postcode = $_POST['postcode'];
$how = $_POST['how'];
$todayis = date("l, F j, Y, g:i a") ;
$subject = $copytype;
$message ="
Date : $todayis \n \n
Company Name : $companyname \n
Name : $name \n
E-mail: $email \n
Phone : $phone \n
Postcode : $postcode \n
Howdidyou : $how \n \n
Copytype: $copytype \n
Copyspeed: $copyspeed \n
Extras: $printing $faxing $scanning $sorting $stapling $binding $none \n
Payment: $payment \n
Stage: $stage \n
Other : $other \n
";
$from = "From: $email \r\n";
mail("123@123.com", $subject, $message, $from);
?>
</body>
</html>