Page 5 of 16

Posted: Tue Nov 24, 2009 9:03 am
by Navaldesign
Please refer to the manual, there is an entire paragraph dedicated to this.

Tips & Trics Section, the paragraph is entitled:

Preserving your form values after submission with wrong captcha value.

Though it refers to the captcha error, it is valid also for any other error.

HTTP 500 Internal server error

Posted: Tue Nov 24, 2009 6:44 pm
by chattd
Hi
I'm almost there but for some reason i get HTTP 500 internal server error

Hello '.$Forename. ', thank you for your submission. ' is the culprit if I remove it's fine. Could you help!

http://www.glendower.co.uk/enquiry_form.php[/url]

Posted: Tue Nov 24, 2009 7:03 pm
by Navaldesign
What are your thank you and error pages URL's ?

Posted: Tue Nov 24, 2009 7:15 pm
by chattd

Posted: Tue Nov 24, 2009 7:39 pm
by Navaldesign
Please copy paste here the entire code of the success page so I can have a look.

Posted: Tue Nov 24, 2009 7:46 pm
by chattd
Navaldesign wrote:Please copy paste here the entire code of the success page so I can have a look.
<?php
// This script was created by DBTECHNOSYSTEMS.com ----
// © DBTechnosystems.com http://www.dbtechnosystems.com
// You may use this script but please leave author details here
error_reporting(0);
if(session_id() == ""){
session_start();
}
$display_table = "Yes";
$clear_session = "Yes";
$PREVIEW = $_SESSION['POST'];

$error="";
$eol = "\n";
require_once 'dbts_includes/dbts_functions.php';
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="en">
<title>Success</title>
<meta name="author" content="Glendower Cutting Tools Ltd">
<meta name="keywords" content="cutting tools, engineering, manufacture, industry, threading, thread milling, carbide tipped, tool, diamond tipped, milling, thread whirling, tools. turning, cbn, carbide inserts, u-drills, tool holders, facemills, special purpose tooling, laser marking, wire erosion, edm, wedm, scoring saws, v-scoring saw, udrills.">
<meta name="description" content="Glendower specialise in milling, thread milling, threading, thread whirling, diamond tipped, carbide tipped tools, Carbide Saws, Scoring Saws, V-Scoring Saw, udrills, Facemills, U-Drills, Tool Holders, Special Purpose Tooling, Laser Marking, EDM, WEDM.">
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
<style type="text/css">
div#container
{
width: 770px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
}
</style>
<script type="text/javascript" src="jscookmenu.js"></script>
<script src="marqueeup.js" type="text/javascript"></script> <link rel="stylesheet" href="./ThemeOfficeBlack/theme.css" type="text/css">
<script type="text/javascript" src="./ThemeOfficeBlack/theme.js"></script>
<style type="text/css">
.preview_table
{
background-color: ;
border: 1px #C0C0C0 Solid;
}
.preview_labels
{
font-family: Arial;
font-size: 10px;
font-weight: normal;
font-style: normal;
text-decoration: normal ;
color: #000000;
background-color: #FFFFFF;
padding: 1px;
}
.preview_values
{
font-family: Arial;
font-size: 10px;
font-weight: normal;
font-style: normal;
text-decoration: normal ;
color: #000000;
background-color: #FFFFFF;
padding: 1px;
}
</style>
<script type="text/javascript">
<!--
function PreloadImages()
{
var imageObj = new Image();
var images = new Array();
images[0]="./images/img0123.gif";
images[1]="./images/img0123_over.gif";
images[2]="./images/img0126.gif";
images[3]="./images/img0126_over.gif";
images[4]="./images/img0127.gif";
images[5]="./images/img0127_over.gif";
images[6]="./images/img0129.gif";
images[7]="./images/img0129_over.gif";
images[8]="./images/img0130.gif";
images[9]="./images/img0130_over.gif";
images[10]="./images/img0131.gif";
images[11]="./images/img0131_over.gif";
images[12]="./images/img0132.gif";
images[13]="./images/img0132_over.gif";
images[14]="./images/img0133.gif";
images[15]="./images/img0133_over.gif";
images[16]="./images/img0134.gif";
images[17]="./images/img0134_over.gif";
images[18]="./images/img0135.gif";
images[19]="./images/img0135_over.gif";
images[20]="./images/img0159.gif";
images[21]="./images/img0159_over.gif";
images[22]="./images/img0160.gif";
images[23]="./images/img0160_over.gif";
images[24]="./images/img0161.gif";
images[25]="./images/img0161_over.gif";
images[26]="./images/img0186.gif";
images[27]="./images/img0186_over.gif";
images[28]="./images/img0187.gif";
images[29]="./images/img0187_over.gif";
images[30]="./images/img0189.gif";
images[31]="./images/img0189_over.gif";
images[32]="./images/img0190.gif";
images[33]="./images/img0190_over.gif";
images[34]="./images/img0193.gif";
images[35]="./images/img0193_over.gif";
images[36]="./images/img0194.gif";
images[37]="./images/img0194_over.gif";
images[38]="./images/img0195.gif";
images[39]="./images/img0195_over.gif";
images[40]="./images/img0196.gif";
images[41]="./images/img0196_over.gif";
images[42]="./images/img0198.gif";
images[43]="./images/img0198_over.gif";
images[44]="./images/img0199.gif";
images[45]="./images/img0199_over.gif";
for (var i=0; i<=45; i++)
{
imageObj.src = images;
}
}
// -->
</script>
<style type="text/css">
a.style2:link
{
color: #68838B;
text-decoration: none;
}
a.style2:visited
{
color: #282828;
text-decoration: none;
}
a.style2:active
{
color: #282828;
text-decoration: none;
}
a.style2:hover
{
color: #282828;
text-decoration: none;
}
a.style3:link
{
color: #000000;
text-decoration: none;
}
a.style3:visited
{
color: #000000;
text-decoration: none;
}
a.style3:active
{
color: #000000;
text-decoration: none;
}
a.style3:hover
{
color: #000000;
text-decoration: underline;
}
</style>
<!--[if IE]>
<style type="text/css">
img { behavior: url("pngfix.htc"); }
</style>
<![endif]-->
</head>
<body background="images/bg.gif" bgcolor="#FFFFFF" text="#000000" style="background-repeat:repeat-y;background-position:center top ;scrollbar-face-color:#ECE9D8;scrollbar-arrow-color:#000000;scrollbar-3dlight-color:#ECE9D8;scrollbar-darkshadow-color:#716F64;scrollbar-highlight-color:#FFFFFF;scrollbar-shadow-color:#ACA899;scrollbar-track-color:#D4D0C8;">
<div id="container">
<div id="wb_Shape2" style="position:absolute;left:213px;top:319px;width:587px;height:465px;z-index:0;" align="center">
<img src="images/img0200.png" id="Shape2" align="top" alt="" title="" border="0" width="587" height="465"></div>
<div id="wb_Extension2" style="position:absolute;left:388px;top:0px;width:414px;height:53px;background-color:#FFFFFF;z-index:1;" align="left">
<!-- Search Google -->
<FORM method="GET" action="http://www.google.co.uk/custom">
<A href="http://www.google.co.uk/"><IMG src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" align="absmiddle"></A>
<INPUT type="text" name="q" size="25" maxlength="255" value="" style="width:153px;">
<INPUT type="submit" name="btnG" value="Google Search" style="width:123px;">
<INPUT type="hidden" name="domains" value="http://www.glendower.co.uk">
<INPUT type="hidden" name="sitesearch" value="http://www.glendower.co.uk">
<INPUT type="hidden" name="cof" value="GALT:#488000;S:http://www.glendower.co.uk;VLC:#800080;AH:center;BGC:#FFFFFF;LC:#0000FF;GFNT:#7777CC;ALC:#FF0000;T:#000000;GIMP:#FF0000;">
</FORM>
<!-- Search Google -->
</div>
<div id="wb_Image1" style="position:absolute;left:0px;top:112px;width:800px;height:150px;z-index:2;" align="left">
<img src="images/header.jpg" id="Image1" alt="Thread Milling, Turning, Milling." align="top" border="0" style="width:800px;height:150px;"></div>
<img src="images/img0204.png" align="top" alt="" border="0" width="291" height="73" style="position:absolute;left:0px;top:0px;width:291px;height:73px;z-index:3">
<div id="wb_JavaScript2" style="position:absolute;left:643px;top:70px;width:198px;height:21px;z-index:4;" align="left">
<font style="font-size:12px;font-family:Arial;" color=#000000>
<div id="basicdate">
</div>
</font>
<script language="JavaScript" type="text/javascript">
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();

today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;

basicdate.innerHTML = today;
</script>


</div>
<div id="wb_Text13" style="position:absolute;left:21px;top:45px;width:150px;height:22px;z-index:5;" align="left">
<font style="font-size:19px" color="#C0C0C0" face="Arial">Cutting Tools Ltd</font></div>
<div id="wb_Extension3" style="position:absolute;left:464px;top:55px;width:125px;height:16px;z-index:6;" align="left">
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_brand="Glendower";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', 'http://www.glendower.co.uk', 'Glendower Cutting Tools Ltd')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark & Share Glendower Cutting Tools" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_wi ... "></script><!-- AddThis Button END -->
</div>
<div id="wb_JavaScript1" style="position:absolute;left:643px;top:87px;width:150px;height:19px;z-index:7;" align="left">
<script language="JavaScript" type="text/javascript">
<!--
datenow = new Date();
timenow = datenow.getTime();
datenow.setTime(timenow);
hournow = datenow.getHours();
if (hournow > 18)
{
greeting = "Good Evening!";
}
else
if (hournow > 12)
{
greeting = "Good Afternoon!";
}
else
{
greeting = "Good Morning!";
}

document.write("<span style='font-family: Arial; font-size: 12px; color: #000000; text-decoration: none;'>" + greeting + "</span>");
//-->
</script>


</div>
<div id="wb_JavaScript4" style="position:absolute;left:0px;top:857px;width:200px;height:20px;z-index:8;" align="left">
<script LANGUAGE="Javascript">
<!--
document.write("<font style="font-size:12px;font-family:Arial;" color=#000000>Last updated: "+document.lastModified+"</font>");
//-->
</script> </div>
<div id="wb_Image2" style="position:absolute;left:334px;top:948px;width:73px;height:45px;z-index:9;" align="left">
<a href="./BSI Certificate Q 05112.pdf" target="_blank"><img src="images/qms_ukas_02.jpg" id="Image2" alt="BSI Registered ISO 9001:2008" align="top" border="0" style="width:73px;height:45px;"></a></div>
<div id="wb_Text14" style="position:absolute;left:416px;top:951px;width:217px;height:42px;z-index:10;" align="left">
<font style="font-size:11px" color="#000000" face="Arial">Company Registration Number.&nbsp; 1047217&nbsp; <br>
VAT Registration Number.&nbsp; GB 114 0601 32<br>
ISO 9001:2008</font></div>
<div id="wb_TextMenu2" style="position:absolute;left:173px;top:885px;width:657px;height:58px;z-index:11;" align="center">
<font style="font-size:11px;" color="#FFFFFF" face="Arial">
[<a href="./index.php" title="Glendower Home Page">Home</a>]&nbsp;[<a href="./milling.html" title="Milling">Milling</a>]&nbsp;[<a href="./turning.html" title="Turning">Turning</a>]&nbsp;[<a href="./threading.html" title="Threading">Threading</a>]&nbsp;[<a href="./formtools.html" title="Form Tools">Form Tools</a>]&nbsp;[<a href="./saws.html" title="Carbide Saws, Scoring Saws, Hss Saws, ">Saws</a>]&nbsp;[<a href="./thread-whirling.html" title="Thread Whirling Inserts">Thread Whirling</a>]&nbsp;[<a href="./u-drills.html" title="U-Drills, Spade Drills,">U-Drills</a>]&nbsp;[<a href="./mini-bars.html" title="Mini Bars">Mini Bars</a>]&nbsp;[<a href="./diamond-tipped-tooling.html" title="Diamond Tipped Tooling">Diamond Tipped Tooling</a>]&nbsp;[<a href="./special-purpose-tooling.html" title="Special Purpose Tooling">Special Purpose Tooling</a>]&nbsp;[<a href="http://" title="Wire Erosion">Wire Erosion</a>]&nbsp;[<a href="BSI Certificate Q 05112.pdf" target="_blank" title="Glendower BSI Certificate ISO 9001:2008">BSI Certificate</a>]&nbsp;[<a href="./saws.html" title="V-Cut Scoring Saws">Scoring Saws</a>]&nbsp;[<a href="./saws.html" title="Solid Carbide V-Scoring Saws">V-Scoring Saws</a>]&nbsp;[<a href="./diamond-tipped-tooling.html" title="PCD Diamond Tipped Inserts">PCD Tipped Inserts</a>]&nbsp;[<a href="./saws.html" title="V-Cut Scoring for PCB boards">v-cut scoring</a>]&nbsp;[<a href="./thread-milling.html" title="Thread Milling">Thread Milling</a>]<br>[<a href="./threading-direct.html" title="threading-direct">threading-direct</a>]&nbsp;[<a href="http://www.glendower.co.uk/sitemap.htm" title="Glendower Cutting Tools Site Map">Site Map</a>]&nbsp;[<a href="./survey.php" title="Feedback">Survey</a>]&nbsp;[<a href="./contact-uk.html" title="UK Contact">UK Contact</a>]&nbsp;[<a href="http://www.specializedstainless.co.uk/a ... -cases.php" target="_blank" title="Specialized Stainless supply stainless steel railings and stair cases.">Stainless Steel Rails</a>]</font></div>
<div id="wb_JavaScript3" style="position:absolute;left:40px;top:292px;width:134px;height:21px;z-index:12;" align="left">
<SCRIPT language="JavaScript" type="text/javascript">
// Location of this script:
// http://www.qiksearch.com/javascripts/bl ... text20.htm
//*********************************************
//* Blinking Text 2.0 *
//* Blinks a text *
//* v 2.0 works on IE/NS4/NS6 *
//* Modified 07 May 2002 *
//* (c) Premshree Pillai, *
//* http://www.qiksearch.com *
//* E-mail : premshree@hotmail.com *
//* Use the script freely as long as this *
//* message is intact *
//*********************************************
window.onerror = null;
var IE4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var NS4=document.layers;
var NS6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
var blink_speed=700; // Delay in milliseconds
var i=0;
var left_pos=330; // The Distance of text from left

if (IE4)
{
layerRef="document.all";
styleSwitch=".style";
}

function Blink(layerName)
{
if (IE4)
{
if(i%2==0)
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="visible"');
}
else
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="hidden"');
}
}

if(NS6 && (navigator.appName!="Microsoft Internet Explorer"))
{
if(i%2==0)
{
eval('document.getElementById("' + layerName + '").style.display=""');
}
else
{
eval('document.getElementById("' + layerName + '").style.display="none"');
}
}
if(i<1)
{
i++;
}
else
{
i--;
}
setTimeout("Blink('"+layerName+"')", blink_speed);
}

if(IE4||NS6)
{
if(IE4)
{
dispIENS="visibility:hidden;";
}
else
{
dispIENS="display:none;";
}
document.write('<div id="wb_blink" style="' + dispIENS + '"><font style="font-size:18px;font-family:Arial;" color="#8B0000">Special Offers</font></div>');
Blink('wb_blink');
}

if(NS4)
{
document.write('<blink><font face="Arial" size=18 color="#8B0000">Special Offers</font></blink>');
}
</SCRIPT>
</div>
<hr size="1" width="161" id="Line1" style="margin:0;padding:0;position:absolute;left:14px;top:338px;width:161px;height:1px;z-index:13">
<div id="wb_Text15" style="position:absolute;left:0px;top:877px;width:176px;height:28px;z-index:14;" align="center">
<font style="font-size:11px" color="#000000" face="Arial"><a href="mailto:dave@glendower.co.uk" class="style2">Website Design & Updated by Glendower Cutting Tools Ltd</a></font></div>
<div id="wb_Shape1" style="position:absolute;left:3px;top:318px;width:195px;height:525px;z-index:15;" align="center">
<img src="images/img0207.png" id="Shape1" align="top" alt="" title="" border="0" width="195" height="525"></div>
<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed" style="position:relative;left:10px;top:339px;width:180px;height:489px;z-index:16;background-color:#FFFFFF;overflow:hidden;border:0px solid #7F7F7F;padding:2px;padding-left:2px;">
<div id="vmarquee" style="position: absolute; width: 98%;">
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 16px" color=#ff0000><strong>!!! FREE !!!</strong></font> </font></font>
</div>
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 16px" color=#ff0000><strong><a href="OTTODEX Promo Oct 2009.pdf">Ottodex Cutter</a> </strong></font></font></font>
</div>
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 14px" color=#000000>when you purchase</font></font></font>&nbsp;
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>20 ODET 150508 RK40G</font>
</div>
<div>
<em>while stocks last</em>
</div>
<div>
<font face=Arial>----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Milling Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Various Endmill sets</font>
</div>
<div>
<font style="FONT-SIZE: 16px" face=Arial><strong>from £18...</strong></font>
</div>
<div>
<font face=Arial>-----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Threading Box Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Threading tool box sets</font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>incuding tools and inserts</font>
</div>
<div>
<font face=Arial><strong>from £160...</strong></font>
</div>
<div>
<font face=Arial>-----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html">V-Cut Scoring Blades</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Standard & Reversable</font>
</div>
<div>
<font face=Arial><strong>from £70...</strong></font>
</div>
<div>
<font face=Arial>....................................</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Mini Tooling Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Various Boring bar sets</font>
</div>
<div>
<font face=Arial><strong>from £110...</strong></font>
</div>
<div>
<font face=Arial>....................................</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong>PCLNR 2525 M12</strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>1 Holder, 20 Inserts</font>
</div>
<div>
<font face=Arial><strong>from £85...</strong></font>
</div>
<div>
....................................
</div>
<div>
<strong><font style="FONT-SIZE: 16px" color=#ff0000 face=Arial>PDJNR 2525 & DNMG 1506 Sets</font></strong><font style="FONT-SIZE: 21px"><u><br></u></font><font style="FONT-SIZE: 14px" color=#000000 face=Arial>1 off PDJNR 2525-15 plus<br>20 off DNMG 1506** 2N or 4T Grade NL30 / NL40 or NL92</font>
</div>
<div>
<font face=Arial>.....................................</font>
</div>
<div>
<strong><font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><a href="http://www.glendower.co.uk/promotions.html" target=_self>HSS Rippa Sets</a></font></strong><font style="FONT-SIZE: 21px"><u><br></u></font><font style="FONT-SIZE: 13px" color=#000000 face=Arial><font style="FONT-SIZE: 14px">844-NR set M42 cobalt coarse pitch comprising 6mm, 8mm, 10mm, 12mm, 16mm & 20mm dia&nbsp;&nbsp;&nbsp; <br><br>844-NF set M42 cobalt fine pitch comprising 6mm, 8mm, 10mm, 12mm, 16mm & 20mm dia</font>&nbsp;</font>
</div>
<div>
<font style="FONT-SIZE: 13px" color=#000000 face=Arial>......................................&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
</div>

</div>
</div>


<div id="wb_MenuBar2" style="position:absolute;left:0px;top:78px;width:694px;height:37px;z-index:2017;" align="left">
<script type="text/javascript">
<!--
var wbMenuMenuBar2 =
[
[null, 'Home', './index.php', '_self', 'Home'],
[null, 'Products', null, '_self', 'Products',
[null, 'Milling', './milling.html', '_self', 'Milling'],
[null, 'Turning', './turning.html', '_self', 'Turning'],
[null, 'Threading', './threading.html', '_self', 'Threading'],
[null, 'Form&nbsp;Tools', './formtools.html', '_self', 'Form Tools'],
[null, 'Saws', './saws.html', '_self', 'Saws'],
[null, 'Thread&nbsp;Whirling', './thread-whirling.html', '_self', 'Thread Whirling'],
[null, 'U-Drills', './u-drills.html', '_self', 'U-Drills'],
[null, 'Mini&nbsp;Bars', './mini-bars.html', '_self', 'Mini Bars'],
[null, 'Diamond&nbsp;Tipped&nbsp;Tooling', './diamond-tipped-tooling.html', '_self', 'Diamond Tipped Tooling'],
[null, 'Special&nbsp;Purpose&nbsp;Tooling', './special-purpose-tooling.html', '_self', 'Special Purpose Tooling']
],
[null, 'Promotions', './promotions.html', '_self', 'Promotions'],
[null, 'Contacts', null, '_self', 'Contacts',
[null, 'UK', './contact-uk.html', '_self', 'UK'],
[null, 'Canada', './contact-canada.html', '_self', 'Canada'],
[null, 'Spain', './contact-spain.html', '_self', 'Spain'],
[null, 'Italy', './contact-italy.html', '_self', 'Italy'],
[null, 'Turkey', './contact-turkey.html', '_self', 'Turkey'],
[null, 'Tiawan', './contact-tiawan.html', '_self', 'Tiawan'],
[null, 'Greece', './contact-greece.html', '_self', 'Greece'],
[null, 'U.A.E', './contact-uae.html', '_self', 'U.A.E'],
[null, 'Egypt', './contact-egypt.html', '_self', 'Egypt'],
[null, 'India', './india.html', '_self', 'India'],
[null, 'Singapore', './singapore.html', '_self', 'Singapore']
],
[null, 'Survey', './survey.php', '_self', 'Survey'],
[null, 'Company&nbsp;Profile', null, '_self', 'Company Profile',
[null, 'English', './company-profile.html', '_self', 'English'],
[null, 'Profil&nbsp;d\'entreprise', './company-profile-french.html', '_self', 'Profil d\'entreprise'],
[null, 'Firma-Profil', './german.pdf', '_self', 'Firma-Profil'],
[null, 'Perfil&nbsp;de&nbsp;compañía', './spanish.pdf', '_self', 'Perfil de compañía']
],
[null, 'About', './about-us.html', '_self', 'About',
[null, 'About&nbsp;us', './about-us.html', '_self', 'About us'],
[null, 'Location', './find-us.html', '_self', 'Location']
]
];
-->
</script>
<div id="MenuIDMenuBar2"></div>
<script type="text/javascript">
<!--
cmDraw('MenuIDMenuBar2', wbMenuMenuBar2, 'hbr', cmThemeOfficeBlack, 'ThemeOfficeBlack');
-->
</script>
</div>
<div id="wb_Text2" style="position:absolute;left:264px;top:404px;width:483px;height:110px;z-index:18;" align="left">
<font style="font-size:16px" color="#68838B" face="Times New Roman">Thank you for contacting <a href="./index.php" class="style3">Glendower Cutting Tools Ltd</a> using our online form.<br>
<br>
We will get back to you with an answer to your query as soon as possible.<br>
<br>
In the meantime, please enjoy the rest of the site.</font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
</font></div>
<div id="wb_Extension1" style="position:absolute;left:260px;top:530px;width:402px;height:234px;z-index:19;" align="left">
<?
$internalfields = array ("submit", "send", "captcha_code", "count", "formid", "submission id", "submission_id", "recaptcha_challenge_field", "recaptcha_response_field");
$previewHTML = '<table width="100%" cellpadding="2" cellspacing="1" class="preview_table" id="preview_table">
';
foreach ($PREVIEW as $key => $val){
if (trim($key) != "" and (!in_array(strtolower(trim($key)), $internalfields))) {
$previewHTML .= '<tr>
<td width ="120" height="25" class="preview_labels">';
$previewHTML .= ucwords(str_replace("_", " ", $key));
$previewHTML .= '</td>
<td class="preview_values" height="25">';
if(is_array($val)){
$value = implode(",", $val);
}
else{
$value = $val;
}
if ($value == "") {
$val = "&nbsp;" ;
}
$previewHTML .= str_replace ("\r\n","<br>",stripslashes($value));
$previewHTML .= '</font></td>
</tr>
';
$preview1[ucwords(str_replace(" ", "_", $key))] = $value;
}
}
$previewHTML .= '</table>
';
extract($preview1, EXTR_OVERWRITE);
if($display_table == "Yes"){
echo $previewHTML;
}
if($clear_session == "Yes"){
$_SESSION['POST'] = "";
}
?></div>
<div id="wb_Text3" style="position:absolute;left:264px;top:354px;width:382px;height:16px;z-index:20;" align="left">
<?
echo '<font style="font-size:13px" color="#000000" face="Verdana">Hello </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font><font style="font-size:13px" color="#FF0000" face="Verdana">.$Forename. </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font><font style="font-size:13px" color="#000000" face="Verdana">, thank you for your submission. </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font>';
?></div>
</div>
</body>
</html>

Posted: Tue Nov 24, 2009 8:07 pm
by Navaldesign
Your issue is due to the formatting that you have done to the sentence.

Remove all formatting (color, bold etc) (YES! you Do have a bold setting, without any content):

<font style="font-size:13px" color="#000000" face="Verdana">Hello </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font><font style="font-size:13px" color="#FF0000" face="Verdana">.$Forename. </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font><font style="font-size:13px" color="#000000" face="Verdana">, thank you for your submission. </font><font style="font-size:13px" color="#FF0000" face="Arial"><b>'</b></font>'

This formatting breaks the PHP code inserted in there.

Select all text. Make it Black.
Then make it (whilst all selected) BOLD. Then Remove the BOLD
Then (whilst selected) make it all Arial (or all Verdana).

Last format the text as follows: make sure to format NOT ONLY the $Forename but the entire part Starting from the white space after "Hello" and including the white space AFTER $Forename.'

This way your text will have a unique formating and the code will not be broken.

Posted: Tue Nov 24, 2009 9:24 pm
by chattd
Sorry to bother you again done what you said, still cant get it to work

<?php
// This script was created by DBTECHNOSYSTEMS.com ----
// © DBTechnosystems.com http://www.dbtechnosystems.com
// You may use this script but please leave author details here
error_reporting(0);
if(session_id() == ""){
session_start();
}
$display_table = "Yes";
$clear_session = "Yes";
$PREVIEW = $_SESSION['POST'];

$error="";
$eol = "\n";
require_once 'dbts_includes/dbts_functions.php';
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="en">
<title>Success</title>
<meta name="author" content="Glendower Cutting Tools Ltd">
<meta name="keywords" content="cutting tools, engineering, manufacture, industry, threading, thread milling, carbide tipped, tool, diamond tipped, milling, thread whirling, tools. turning, cbn, carbide inserts, u-drills, tool holders, facemills, special purpose tooling, laser marking, wire erosion, edm, wedm, scoring saws, v-scoring saw, udrills.">
<meta name="description" content="Glendower specialise in milling, thread milling, threading, thread whirling, diamond tipped, carbide tipped tools, Carbide Saws, Scoring Saws, V-Scoring Saw, udrills, Facemills, U-Drills, Tool Holders, Special Purpose Tooling, Laser Marking, EDM, WEDM.">
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
<style type="text/css">
div#container
{
width: 770px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
}
</style>
<script type="text/javascript" src="jscookmenu.js"></script>
<script src="marqueeup.js" type="text/javascript"></script> <link rel="stylesheet" href="./ThemeOfficeBlack/theme.css" type="text/css">
<script type="text/javascript" src="./ThemeOfficeBlack/theme.js"></script>
<style type="text/css">
.preview_table
{
background-color: ;
border: 1px #C0C0C0 Solid;
}
.preview_labels
{
font-family: Arial;
font-size: 10px;
font-weight: normal;
font-style: normal;
text-decoration: normal ;
color: #000000;
background-color: #FFFFFF;
padding: 1px;
}
.preview_values
{
font-family: Arial;
font-size: 10px;
font-weight: normal;
font-style: normal;
text-decoration: normal ;
color: #000000;
background-color: #FFFFFF;
padding: 1px;
}
</style>
<script type="text/javascript">
<!--
function PreloadImages()
{
var imageObj = new Image();
var images = new Array();
images[0]="./images/img0123.gif";
images[1]="./images/img0123_over.gif";
images[2]="./images/img0126.gif";
images[3]="./images/img0126_over.gif";
images[4]="./images/img0127.gif";
images[5]="./images/img0127_over.gif";
images[6]="./images/img0129.gif";
images[7]="./images/img0129_over.gif";
images[8]="./images/img0130.gif";
images[9]="./images/img0130_over.gif";
images[10]="./images/img0131.gif";
images[11]="./images/img0131_over.gif";
images[12]="./images/img0132.gif";
images[13]="./images/img0132_over.gif";
images[14]="./images/img0133.gif";
images[15]="./images/img0133_over.gif";
images[16]="./images/img0134.gif";
images[17]="./images/img0134_over.gif";
images[18]="./images/img0135.gif";
images[19]="./images/img0135_over.gif";
images[20]="./images/img0159.gif";
images[21]="./images/img0159_over.gif";
images[22]="./images/img0160.gif";
images[23]="./images/img0160_over.gif";
images[24]="./images/img0161.gif";
images[25]="./images/img0161_over.gif";
images[26]="./images/img0186.gif";
images[27]="./images/img0186_over.gif";
images[28]="./images/img0187.gif";
images[29]="./images/img0187_over.gif";
images[30]="./images/img0189.gif";
images[31]="./images/img0189_over.gif";
images[32]="./images/img0190.gif";
images[33]="./images/img0190_over.gif";
images[34]="./images/img0193.gif";
images[35]="./images/img0193_over.gif";
images[36]="./images/img0194.gif";
images[37]="./images/img0194_over.gif";
images[38]="./images/img0195.gif";
images[39]="./images/img0195_over.gif";
images[40]="./images/img0196.gif";
images[41]="./images/img0196_over.gif";
images[42]="./images/img0198.gif";
images[43]="./images/img0198_over.gif";
images[44]="./images/img0199.gif";
images[45]="./images/img0199_over.gif";
for (var i=0; i<=45; i++)
{
imageObj.src = images;
}
}
// -->
</script>
<style type="text/css">
a.style2:link
{
color: #68838B;
text-decoration: none;
}
a.style2:visited
{
color: #282828;
text-decoration: none;
}
a.style2:active
{
color: #282828;
text-decoration: none;
}
a.style2:hover
{
color: #282828;
text-decoration: none;
}
a.style3:link
{
color: #000000;
text-decoration: none;
}
a.style3:visited
{
color: #000000;
text-decoration: none;
}
a.style3:active
{
color: #000000;
text-decoration: none;
}
a.style3:hover
{
color: #000000;
text-decoration: underline;
}
</style>
<!--[if IE]>
<style type="text/css">
img { behavior: url("pngfix.htc"); }
</style>
<![endif]-->
</head>
<body background="images/bg.gif" bgcolor="#FFFFFF" text="#000000" style="background-repeat:repeat-y;background-position:center top ;scrollbar-face-color:#ECE9D8;scrollbar-arrow-color:#000000;scrollbar-3dlight-color:#ECE9D8;scrollbar-darkshadow-color:#716F64;scrollbar-highlight-color:#FFFFFF;scrollbar-shadow-color:#ACA899;scrollbar-track-color:#D4D0C8;">
<div id="container">
<div id="wb_Shape2" style="position:absolute;left:214px;top:321px;width:587px;height:507px;z-index:0;" align="center">
<img src="images/img0200.png" id="Shape2" align="top" alt="" title="" border="0" width="587" height="507"></div>
<div id="wb_Extension2" style="position:absolute;left:388px;top:0px;width:414px;height:53px;background-color:#FFFFFF;z-index:1;" align="left">
<!-- Search Google -->
<FORM method="GET" action="http://www.google.co.uk/custom">
<A href="http://www.google.co.uk/"><IMG src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" align="absmiddle"></A>
<INPUT type="text" name="q" size="25" maxlength="255" value="" style="width:153px;">
<INPUT type="submit" name="btnG" value="Google Search" style="width:123px;">
<INPUT type="hidden" name="domains" value="http://www.glendower.co.uk">
<INPUT type="hidden" name="sitesearch" value="http://www.glendower.co.uk">
<INPUT type="hidden" name="cof" value="GALT:#488000;S:http://www.glendower.co.uk;VLC:#800080;AH:center;BGC:#FFFFFF;LC:#0000FF;GFNT:#7777CC;ALC:#FF0000;T:#000000;GIMP:#FF0000;">
</FORM>
<!-- Search Google -->
</div>
<div id="wb_Image1" style="position:absolute;left:0px;top:112px;width:800px;height:150px;z-index:2;" align="left">
<img src="images/header.jpg" id="Image1" alt="Thread Milling, Turning, Milling." align="top" border="0" style="width:800px;height:150px;"></div>
<img src="images/img0204.png" align="top" alt="" border="0" width="291" height="73" style="position:absolute;left:0px;top:0px;width:291px;height:73px;z-index:3">
<div id="wb_JavaScript2" style="position:absolute;left:643px;top:70px;width:198px;height:21px;z-index:4;" align="left">
<font style="font-size:12px;font-family:Arial;" color=#000000>
<div id="basicdate">
</div>
</font>
<script language="JavaScript" type="text/javascript">
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var year = (now.getYear() < 1000) ? now.getYear() + 1900 : now.getYear();

today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + year;

basicdate.innerHTML = today;
</script>


</div>
<div id="wb_Text13" style="position:absolute;left:21px;top:45px;width:150px;height:22px;z-index:5;" align="left">
<font style="font-size:19px" color="#C0C0C0" face="Arial">Cutting Tools Ltd</font></div>
<div id="wb_Extension3" style="position:absolute;left:464px;top:55px;width:125px;height:16px;z-index:6;" align="left">
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_brand="Glendower";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', 'http://www.glendower.co.uk', 'Glendower Cutting Tools Ltd')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark & Share Glendower Cutting Tools" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_wi ... "></script><!-- AddThis Button END -->
</div>
<div id="wb_JavaScript1" style="position:absolute;left:643px;top:87px;width:150px;height:19px;z-index:7;" align="left">
<script language="JavaScript" type="text/javascript">
<!--
datenow = new Date();
timenow = datenow.getTime();
datenow.setTime(timenow);
hournow = datenow.getHours();
if (hournow > 18)
{
greeting = "Good Evening!";
}
else
if (hournow > 12)
{
greeting = "Good Afternoon!";
}
else
{
greeting = "Good Morning!";
}

document.write("<span style='font-family: Arial; font-size: 12px; color: #000000; text-decoration: none;'>" + greeting + "</span>");
//-->
</script>


</div>
<div id="wb_JavaScript4" style="position:absolute;left:0px;top:857px;width:200px;height:20px;z-index:8;" align="left">
<script LANGUAGE="Javascript">
<!--
document.write("<font style=\"font-size:12px;font-family:Arial;\" color=#000000>Last updated: "+document.lastModified+"</font>");
//-->
</script> </div>
<div id="wb_Image2" style="position:absolute;left:334px;top:948px;width:73px;height:45px;z-index:9;" align="left">
<a href="./BSI Certificate Q 05112.pdf" target="_blank"><img src="images/qms_ukas_02.jpg" id="Image2" alt="BSI Registered ISO 9001:2008" align="top" border="0" style="width:73px;height:45px;"></a></div>
<div id="wb_Text14" style="position:absolute;left:416px;top:951px;width:217px;height:42px;z-index:10;" align="left">
<font style="font-size:11px" color="#000000" face="Arial">Company Registration Number.&nbsp; 1047217&nbsp; <br>
VAT Registration Number.&nbsp; GB 114 0601 32<br>
ISO 9001:2008</font></div>
<div id="wb_TextMenu2" style="position:absolute;left:173px;top:885px;width:657px;height:58px;z-index:11;" align="center">
<font style="font-size:11px;" color="#FFFFFF" face="Arial">
[<a href="./index.php" title="Glendower Home Page">Home</a>]&nbsp;[<a href="./milling.html" title="Milling">Milling</a>]&nbsp;[<a href="./turning.html" title="Turning">Turning</a>]&nbsp;[<a href="./threading.html" title="Threading">Threading</a>]&nbsp;[<a href="./formtools.html" title="Form Tools">Form Tools</a>]&nbsp;[<a href="./saws.html" title="Carbide Saws, Scoring Saws, Hss Saws, ">Saws</a>]&nbsp;[<a href="./thread-whirling.html" title="Thread Whirling Inserts">Thread Whirling</a>]&nbsp;[<a href="./u-drills.html" title="U-Drills, Spade Drills,">U-Drills</a>]&nbsp;[<a href="./mini-bars.html" title="Mini Bars">Mini Bars</a>]&nbsp;[<a href="./diamond-tipped-tooling.html" title="Diamond Tipped Tooling">Diamond Tipped Tooling</a>]&nbsp;[<a href="./special-purpose-tooling.html" title="Special Purpose Tooling">Special Purpose Tooling</a>]&nbsp;[<a href="http://" title="Wire Erosion">Wire Erosion</a>]&nbsp;[<a href="BSI Certificate Q 05112.pdf" target="_blank" title="Glendower BSI Certificate ISO 9001:2008">BSI Certificate</a>]&nbsp;[<a href="./saws.html" title="V-Cut Scoring Saws">Scoring Saws</a>]&nbsp;[<a href="./saws.html" title="Solid Carbide V-Scoring Saws">V-Scoring Saws</a>]&nbsp;[<a href="./diamond-tipped-tooling.html" title="PCD Diamond Tipped Inserts">PCD Tipped Inserts</a>]&nbsp;[<a href="./saws.html" title="V-Cut Scoring for PCB boards">v-cut scoring</a>]&nbsp;[<a href="./thread-milling.html" title="Thread Milling">Thread Milling</a>]<br>[<a href="./threading-direct.html" title="threading-direct">threading-direct</a>]&nbsp;[<a href="http://www.glendower.co.uk/sitemap.htm" title="Glendower Cutting Tools Site Map">Site Map</a>]&nbsp;[<a href="./survey.php" title="Feedback">Survey</a>]&nbsp;[<a href="./contact-uk.html" title="UK Contact">UK Contact</a>]&nbsp;[<a href="http://www.specializedstainless.co.uk/a ... -cases.php" target="_blank" title="Specialized Stainless supply stainless steel railings and stair cases.">Stainless Steel Rails</a>]</font></div>
<div id="wb_JavaScript3" style="position:absolute;left:40px;top:292px;width:134px;height:21px;z-index:12;" align="left">
<SCRIPT language="JavaScript" type="text/javascript">
// Location of this script:
// http://www.qiksearch.com/javascripts/bl ... text20.htm
//*********************************************
//* Blinking Text 2.0 *
//* Blinks a text *
//* v 2.0 works on IE/NS4/NS6 *
//* Modified 07 May 2002 *
//* (c) Premshree Pillai, *
//* http://www.qiksearch.com *
//* E-mail : premshree@hotmail.com *
//* Use the script freely as long as this *
//* message is intact *
//*********************************************
window.onerror = null;
var IE4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var NS4=document.layers;
var NS6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
var blink_speed=700; // Delay in milliseconds
var i=0;
var left_pos=330; // The Distance of text from left

if (IE4)
{
layerRef="document.all";
styleSwitch=".style";
}

function Blink(layerName)
{
if (IE4)
{
if(i%2==0)
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="visible"');
}
else
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="hidden"');
}
}

if(NS6 && (navigator.appName!="Microsoft Internet Explorer"))
{
if(i%2==0)
{
eval('document.getElementById("' + layerName + '").style.display=""');
}
else
{
eval('document.getElementById("' + layerName + '").style.display="none"');
}
}
if(i<1)
{
i++;
}
else
{
i--;
}
setTimeout("Blink('"+layerName+"')", blink_speed);
}

if(IE4||NS6)
{
if(IE4)
{
dispIENS="visibility:hidden;";
}
else
{
dispIENS="display:none;";
}
document.write('<div id="wb_blink" style="' + dispIENS + '"><font style="font-size:18px;font-family:Arial;" color="#8B0000">Special Offers</font></div>');
Blink('wb_blink');
}

if(NS4)
{
document.write('<blink><font face="Arial" size=18 color="#8B0000">Special Offers</font></blink>');
}
</SCRIPT>
</div>
<hr size="1" width="161" id="Line1" style="margin:0;padding:0;position:absolute;left:14px;top:338px;width:161px;height:1px;z-index:13">
<div id="wb_Text15" style="position:absolute;left:0px;top:877px;width:176px;height:28px;z-index:14;" align="center">
<font style="font-size:11px" color="#000000" face="Arial"><a href="mailto:dave@glendower.co.uk" class="style2">Website Design & Updated by Glendower Cutting Tools Ltd</a></font></div>
<div id="wb_Shape1" style="position:absolute;left:3px;top:318px;width:195px;height:525px;z-index:15;" align="center">
<img src="images/img0207.png" id="Shape1" align="top" alt="" title="" border="0" width="195" height="525"></div>
<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed" style="position:relative;left:10px;top:339px;width:180px;height:489px;z-index:16;background-color:#FFFFFF;overflow:hidden;border:0px solid #7F7F7F;padding:2px;padding-left:2px;">
<div id="vmarquee" style="position: absolute; width: 98%;">
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 16px" color=#ff0000><strong>!!! FREE !!!</strong></font> </font></font>
</div>
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 16px" color=#ff0000><strong><a href="OTTODEX Promo Oct 2009.pdf">Ottodex Cutter</a> </strong></font></font></font>
</div>
<div>
<font style="FONT-SIZE: 10px"><font face=Arial><font style="FONT-SIZE: 14px" color=#000000>when you purchase</font></font></font>&nbsp;
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>20 ODET 150508 RK40G</font>
</div>
<div>
<em>while stocks last</em>
</div>
<div>
<font face=Arial>----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Milling Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Various Endmill sets</font>
</div>
<div>
<font style="FONT-SIZE: 16px" face=Arial><strong>from £18...</strong></font>
</div>
<div>
<font face=Arial>-----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Threading Box Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Threading tool box sets</font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>incuding tools and inserts</font>
</div>
<div>
<font face=Arial><strong>from £160...</strong></font>
</div>
<div>
<font face=Arial>-----------------------------</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html">V-Cut Scoring Blades</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Standard & Reversable</font>
</div>
<div>
<font face=Arial><strong>from £70...</strong></font>
</div>
<div>
<font face=Arial>....................................</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong><a href="http://www.glendower.co.uk/promotions.html" target=_self>Mini Tooling Sets</a></strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>Various Boring bar sets</font>
</div>
<div>
<font face=Arial><strong>from £110...</strong></font>
</div>
<div>
<font face=Arial>....................................</font>
</div>
<div>
<font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><strong>PCLNR 2525 M12</strong></font>
</div>
<div>
<font style="FONT-SIZE: 14px" face=Arial>1 Holder, 20 Inserts</font>
</div>
<div>
<font face=Arial><strong>from £85...</strong></font>
</div>
<div>
....................................
</div>
<div>
<strong><font style="FONT-SIZE: 16px" color=#ff0000 face=Arial>PDJNR 2525 & DNMG 1506 Sets</font></strong><font style="FONT-SIZE: 21px"><u><br></u></font><font style="FONT-SIZE: 14px" color=#000000 face=Arial>1 off PDJNR 2525-15 plus<br>20 off DNMG 1506** 2N or 4T Grade NL30 / NL40 or NL92</font>
</div>
<div>
<font face=Arial>.....................................</font>
</div>
<div>
<strong><font style="FONT-SIZE: 16px" color=#ff0000 face=Arial><a href="http://www.glendower.co.uk/promotions.html" target=_self>HSS Rippa Sets</a></font></strong><font style="FONT-SIZE: 21px"><u><br></u></font><font style="FONT-SIZE: 13px" color=#000000 face=Arial><font style="FONT-SIZE: 14px">844-NR set M42 cobalt coarse pitch comprising 6mm, 8mm, 10mm, 12mm, 16mm & 20mm dia&nbsp;&nbsp;&nbsp; <br><br>844-NF set M42 cobalt fine pitch comprising 6mm, 8mm, 10mm, 12mm, 16mm & 20mm dia</font>&nbsp;</font>
</div>
<div>
<font style="FONT-SIZE: 13px" color=#000000 face=Arial>......................................&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
</div>

</div>
</div>


<div id="wb_MenuBar2" style="position:absolute;left:0px;top:78px;width:694px;height:37px;z-index:2017;" align="left">
<script type="text/javascript">
<!--
var wbMenuMenuBar2 =
[
[null, 'Home', './index.php', '_self', 'Home'],
[null, 'Products', null, '_self', 'Products',
[null, 'Milling', './milling.html', '_self', 'Milling'],
[null, 'Turning', './turning.html', '_self', 'Turning'],
[null, 'Threading', './threading.html', '_self', 'Threading'],
[null, 'Form&nbsp;Tools', './formtools.html', '_self', 'Form Tools'],
[null, 'Saws', './saws.html', '_self', 'Saws'],
[null, 'Thread&nbsp;Whirling', './thread-whirling.html', '_self', 'Thread Whirling'],
[null, 'U-Drills', './u-drills.html', '_self', 'U-Drills'],
[null, 'Mini&nbsp;Bars', './mini-bars.html', '_self', 'Mini Bars'],
[null, 'Diamond&nbsp;Tipped&nbsp;Tooling', './diamond-tipped-tooling.html', '_self', 'Diamond Tipped Tooling'],
[null, 'Special&nbsp;Purpose&nbsp;Tooling', './special-purpose-tooling.html', '_self', 'Special Purpose Tooling']
],
[null, 'Promotions', './promotions.html', '_self', 'Promotions'],
[null, 'Contacts', null, '_self', 'Contacts',
[null, 'UK', './contact-uk.html', '_self', 'UK'],
[null, 'Canada', './contact-canada.html', '_self', 'Canada'],
[null, 'Spain', './contact-spain.html', '_self', 'Spain'],
[null, 'Italy', './contact-italy.html', '_self', 'Italy'],
[null, 'Turkey', './contact-turkey.html', '_self', 'Turkey'],
[null, 'Tiawan', './contact-tiawan.html', '_self', 'Tiawan'],
[null, 'Greece', './contact-greece.html', '_self', 'Greece'],
[null, 'U.A.E', './contact-uae.html', '_self', 'U.A.E'],
[null, 'Egypt', './contact-egypt.html', '_self', 'Egypt'],
[null, 'India', './india.html', '_self', 'India'],
[null, 'Singapore', './singapore.html', '_self', 'Singapore']
],
[null, 'Survey', './survey.php', '_self', 'Survey'],
[null, 'Company&nbsp;Profile', null, '_self', 'Company Profile',
[null, 'English', './company-profile.html', '_self', 'English'],
[null, 'Profil&nbsp;d\'entreprise', './company-profile-french.html', '_self', 'Profil d\'entreprise'],
[null, 'Firma-Profil', './german.pdf', '_self', 'Firma-Profil'],
[null, 'Perfil&nbsp;de&nbsp;compañía', './spanish.pdf', '_self', 'Perfil de compañía']
],
[null, 'About', './about-us.html', '_self', 'About',
[null, 'About&nbsp;us', './about-us.html', '_self', 'About us'],
[null, 'Location', './find-us.html', '_self', 'Location']
]
];
-->
</script>
<div id="MenuIDMenuBar2"></div>
<script type="text/javascript">
<!--
cmDraw('MenuIDMenuBar2', wbMenuMenuBar2, 'hbr', cmThemeOfficeBlack, 'ThemeOfficeBlack');
-->
</script>
</div>
<div id="wb_Text2" style="position:absolute;left:264px;top:404px;width:483px;height:110px;z-index:18;" align="left">
<font style="font-size:16px" color="#000000" face="Times New Roman">Thank you for contacting <a href="./index.php" class="style3">Glendower Cutting Tools Ltd</a> using our online form.<br>
<br>
We will get back to you with an answer to your query as soon as possible.<br>
<br>
In the meantime, please enjoy the rest of the site.<br>
</font></div>
<div id="wb_Extension1" style="position:absolute;left:260px;top:530px;width:402px;height:234px;z-index:19;" align="left">
<?
$internalfields = array ("submit", "send", "captcha_code", "count", "formid", "submission id", "submission_id", "recaptcha_challenge_field", "recaptcha_response_field");
$previewHTML = '<table width="100%" cellpadding="2" cellspacing="1" class="preview_table" id="preview_table">
';
foreach ($PREVIEW as $key => $val){
if (trim($key) != "" and (!in_array(strtolower(trim($key)), $internalfields))) {
$previewHTML .= '<tr>
<td width ="120" height="25" class="preview_labels">';
$previewHTML .= ucwords(str_replace("_", " ", $key));
$previewHTML .= '</td>
<td class="preview_values" height="25">';
if(is_array($val)){
$value = implode(",", $val);
}
else{
$value = $val;
}
if ($value == "") {
$val = "&nbsp;" ;
}
$previewHTML .= str_replace ("\r\n","<br>",stripslashes($value));
$previewHTML .= '</font></td>
</tr>
';
$preview1[ucwords(str_replace(" ", "_", $key))] = $value;
}
}
$previewHTML .= '</table>
';
extract($preview1, EXTR_OVERWRITE);
if($display_table == "Yes"){
echo $previewHTML;
}
if($clear_session == "Yes"){
$_SESSION['POST'] = "";
}
?></div>
<div id="wb_Text3" style="position:absolute;left:264px;top:356px;width:382px;height:18px;z-index:20;" align="left">
<?
echo '<font style="font-size:16px" color="#000000" face="Arial">Hello '.$Forename. ', thank you for your submission. '</font>';
?></div>
</div>
</body>
</html>

Posted: Tue Nov 24, 2009 9:46 pm
by Navaldesign
You have a quote ' after the word "submission". Remove it.

Please also note that the Preview object is the last one in your page. This means that though you will no longer get errors, the variable will probably not display.
So make sure to click on the text that includes the variable and Move it to Front.

Posted: Tue Nov 24, 2009 9:50 pm
by chattd
Navaldesign wrote:You have a quote ' after the word "submission". Remove it.

Please also note that the Preview object is the last one in your page. This means that though you will no longer get errors, the variable will probably not display.
So make sure to click on the text that includes the variable and Move it to Front.
Thank you
never writen any code before I just copied it from your manual copy & paste :D

Auto Responder

Posted: Wed Nov 25, 2009 6:08 pm
by chattd
Hi
Could you explain why, when i fill out the form it will not sent a auto respond 'Confirmation' to the person who filled in the form with his email address. Hope you understand this

Posted: Wed Nov 25, 2009 6:22 pm
by Navaldesign
Did you name the visitor's email field "email" all lower case ?

Did you set the Autoresponder to "Yes" ?

Posted: Wed Nov 25, 2009 7:51 pm
by chattd
Navaldesign wrote:Did you name the visitor's email field "email" all lower case ?

Did you set the Autoresponder to "Yes" ?
Thanks I have just been reading about lowercase it works. Thanks for all your help

Two views sent to my email

Posted: Wed Nov 25, 2009 8:45 pm
by chattd
Hi
Seems to be working great now thanks. :D

Just one thing when I recieve an email there are two form submissions
one from WB standard form and one from DBTS_Form_Processor. I only want the view from DBTS_Form_Processor, Is there any way to switch WB standard off.

Posted: Wed Nov 25, 2009 9:00 pm
by Navaldesign
You have probably still checked the "Enable built in form Processor" checkbox in the form properties.


Uncheck it.

And set the form action correctly (see manual). It is, right now set correctly, because the built in Form Processor was enabled, but when you disable it, the form action needs to be set correctly. See manual.

Please help!!!

Posted: Fri Nov 27, 2009 8:38 am
by chattd
Hi
I have unchecked the "Enable built in form Processor" checkbox in the form properties. but all that happens now is it goes to the error page when i try and submit a form. I have read the manual but with no luck
could please help me in this matter.

Thanks

Re: I need a Help

Posted: Fri Nov 27, 2009 10:02 am
by Navaldesign
Johann wrote:Hello !!!

I am designing a website with WB6 and I built a web form
with this technology, but I have a question ??

I need to X client (somebody) receive the form data when he taped your

e-mail in the form. That=B4s is posible, How Can I do That, the point is:


We have a Car Rental Business intranet, so we need the costumer

service agent tape any e-mail of his client and send the information to thi=

s
client.

A review the tutorial but there are Administration mail and Autoresponse
mail but this not work in this case.

I need your help about this topic.

Thank you
Let me see if I have correctly understood: You need to have an email sent to you (Admin) and an autoresponder email sent to the customer, PLUS a notification email sent to a third party ?

If yes, you can use an include to send this third email, which has to be custom built, OR, if you are happy with that third party receiving the same email as the admin, you can simply add his email address in the Admin email field

Re: Please help!!!

Posted: Fri Nov 27, 2009 10:05 am
by Navaldesign
chattd wrote:Hi
I have unchecked the "Enable built in form Processor" checkbox in the form properties. but all that happens now is it goes to the error page when i try and submit a form. I have read the manual but with no luck
could please help me in this matter.

Thanks
If you have correctly set the error page, it should report the actual error that is happening. What's the error message ?

(The error page should contain the text ##error## which will be automatically replaced by the actual error message).

Post here the error message so we can see what's wrong.

Posted: Fri Nov 27, 2009 10:23 am
by chattd
The entered code is wrong! / reCAPTCHA Error: incorrect-captcha-sol

Posted: Fri Nov 27, 2009 10:32 am
by Navaldesign
If you have enabled the Force reCAPTCA by setting it to Yes but you have no reCAPTCHA in your form, it will give you this error. A link to the form pls ?

Posted: Fri Nov 27, 2009 10:38 am
by chattd
Navaldesign wrote:If you have enabled the Force reCAPTCA by setting it to Yes but you have no reCAPTCHA in your form, it will give you this error. A link to the form pls ?
http://www.glendower.co.uk/enquiry_form.php

Posted: Fri Nov 27, 2009 10:48 am
by Navaldesign
Your form encoding type is set to "text/plain" instead of the correct "multipart/form data" so NO values are passed to the script.

Change it, save, publish, and Refresh your browser to test.

Pls read carefully the manual, these instructions are included.

Posted: Fri Nov 27, 2009 10:56 am
by chattd
Navaldesign wrote:Your form encoding type is set to "text/plain" instead of the correct "multipart/form data" so NO values are passed to the script.

Change it, save, publish, and Refresh your browser to test.

Pls read carefully the manual, these instructions are included.
Perfect Thanks for your help. I do try and read manuals obviously with not much success. Thanks again :D

Posted: Sat Nov 28, 2009 6:42 am
by Navaldesign
If you have no form in your page, you don't need it.

Posted: Sun Nov 29, 2009 7:07 am
by Navaldesign
I'm sorry but there is no question (at least not one that I understand).

This extension is a form processor, that is used to process your form submissions. It is NOT supposed to show (display) anything at all, it will work only in the background to process the info submitted by a form.

No form, no need for this extension to be used in your page.

Posted: Sun Nov 29, 2009 9:49 am
by chattd
voltagenh wrote:ok. but then my question still remain,

when i drag this to stage, and publish

nothing shows :(
Hi
You need to set up a form first using the form section on the left hand side, get that to publish first make sure it works, then come back.

3 pages needed:
form.php
success.php or html
error.php or html
I made mine all php

example
http://dacsolutions.co.uk/form/
http://www.glendower.co.uk/enquiry_form.php

Posted: Mon Nov 30, 2009 11:26 am
by tdr
I would like to use DBTS form processor to handle user signup for a newsletter with recaptcha. As part of the signup I would like to validate user's email by having them enter it twice.
Where do I put the validation code so that it fires correctly when the submit button is clicked?

e.g.
form = form1
inputbox1 = email
inputbox2 = verify_email

I've seen elsewhere on this forum I could use javascript similar to below, but I am not sure where to insert it:

<script language="javascript">
document.forms[0].onsubmit = function()
{
if
(this.elements['email'].value != this.elements['verify_email'].value)
{
alert('emails do not match');
return false;
}

return true;
}
</script>


thanks much

Posted: Mon Nov 30, 2009 12:23 pm
by Navaldesign
Javascript acts on local (visitor's computer) level.

To validate through PHP you need to use the DBTS Form Processor ability to use custom includes.

The eventual error will be reported in the error page.

Posted: Tue Dec 01, 2009 4:05 pm
by Navaldesign
If your extension manager says "Installed", right click the extensions toolbar and select "Reset Toolbar".

This should do the trick.

Posted: Tue Dec 01, 2009 5:07 pm
by Navaldesign
Did you Reset the toolbox as suggested ? Sometimes new extensions will not show up until the toolbox (the extensions one!) is reset.

Also, after installation, you need to close and restart WB, then Reset toolbox.

Posted: Tue Dec 01, 2009 8:13 pm
by Navaldesign
Sorry, but I don't know why this happens. I don't think it has anything to do with the extension itself. I suggest that you post in the Extensions forum as new topic, so Support can provide some guidance, if any.

Posted: Tue Dec 01, 2009 10:02 pm
by Navaldesign
You must unzip and THEN install (or manually move the files in the program folder)
Then Restart WB

Posted: Wed Dec 02, 2009 3:48 am
by tdr
Navaldesign wrote:Javascript acts on local (visitor's computer) level.

To validate through PHP you need to use the DBTS Form Processor ability to use custom includes.

The eventual error will be reported in the error page.
I've read the DBTS manual on custom includes but I am not really sure how to get started. Do you perhaps have any examples you have built that implement this kind of functionality that I could learn from? e.g. a form that does password setting with verify would be the same as what I need to do here.

thanks

order of fields

Posted: Wed Dec 02, 2009 3:50 pm
by chattd
Just added some extra text fields into my form, but when i recieve email they are not in the same order as i designed them, probably a simple solution but can't find it. please help. Also how can you get the form to check that both email address are the same

Posted: Wed Dec 02, 2009 5:10 pm
by Navaldesign
Fields Order: right click each field, Move to Front.

Repeat for all fields in the desired order.

Are you using DBTS Form Processor ? If yes, use a custom include to verify that the two email addresses are the same.

Posted: Wed Dec 02, 2009 5:26 pm
by chattd
Field order sorted, as for ' use a custom include ' ??

Posted: Wed Dec 02, 2009 5:30 pm
by Navaldesign
It means that you need to write some code of your own, to perform this validation, and then save / upload it on your server, in the DBTS Form Processor/dbts_includes folder, and provide, in the extension properties, in the Includes section, the path to this file as Before Error Reporting Include.

The script will retrieve your code, it will perform the necessary validation, and if the two email addresses are not the same, it will report the error.

Posted: Wed Dec 02, 2009 6:10 pm
by chattd
What if know nothing about writing code, would you help!

Posted: Wed Dec 02, 2009 6:21 pm
by Navaldesign
As stated in the Manual, this feature is for advanced users only, that can do some coding. Otherwise I would need to create the necessary code for any request that is made in this forum (starting from your own, going to credit card validations, to department submission, conditional submissions etc.... The list is endless..)

As you understand I can't provide such type of support... This is part of my professional doing. If you wish you can contact me on a private basis through my site form.

Posted: Fri Dec 04, 2009 4:10 pm
by Navaldesign
I answered in one of your other threads.

ABVFP

Posted: Mon Dec 14, 2009 5:08 pm
by RonHills
Good afternoon, George;

Can I safely assume that ABVFP must be completely removed before downloading and installing this new form processor?

Is there a simple way to copy the data from the ABVFP database to the new database created for DBTS form processor?

Thanks for the great work!

Posted: Mon Dec 14, 2009 6:19 pm
by Navaldesign
ABVFP is an online processor, so you don't need to remove it in order to work with the DBTS Form Processor Extension.

You can use the same Database, and probably (never tried it) the same table . Simply specify, in the DBTS Form processor properties, the same database and table as well as username and password.

You might want to make a test submission, as the column names created by DBTS FP might be slightly different from those created by ABVFP. I suggest the following procedure:

1. Make a test submission with the DBTS FP (to the same DB - table)
2. Enter your hosting account, phpMyAdmin, select the database and table used till now.
3. See if DBTS FP has added new columns, similar to those created previously by ABVFP.
4. If you have similar names (example: timestamp and Timestamp), DROP the newly created column, then RENAME the corresponding columns created in the past by ABVFP to have the same name as the new ones created by DBTS FP.

At this point you should be done.

ABVFP vs DBTS FP

Posted: Mon Dec 14, 2009 7:20 pm
by RonHills
Thanks for the speedy reply!

What are the PROS and CONS of using DBTS FP versus using ABVFP?

Also: Previously in this thread questions were asked about attachments and maximum file size. I can't remember what the site was, but a while back I uploaded severals photos and each time I added another photo it displayed the TOTAL upload file size. When I reached the maximum it showed a warning that I had exceeded the max upload allowed.

Obviously there was some knid of script running in the background (maybe ajax?) updating the total size. This might be a nice addition at some point in the future to either or both form processors.

Thanks again for all your help!

Posted: Mon Dec 14, 2009 7:36 pm
by Navaldesign
Hi Ron,

The only thing that ABVFP has which is not present in the DBTS FP is the field validation using PHP. Which, with a little of php experience, can be added as include.

DBTS FP instead has LOTS of additional features compared to ABVFP (which is now being developed as a professional script, in its 3rd version, and will include these features) :

Includes, HTML enail, mail engine control, attachments to the autoresponder mail, logo in the mails, customizable look of the mails, storage of info in CSV file, file type validation, total attachment size (not real time though, as you suggested), multipage form support, preview / confirmation page, recaptcha support, form fields values preservation, ability to include or not technical info, etc. See the first page in the DBTS FP thread to see the features.

problem with sesion

Posted: Sat Dec 26, 2009 5:54 am
by daviddluckett
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by ( on line 8)

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent ( on line 8

Why am I getting these errors when I try to load this sample form?

Posted: Sat Dec 26, 2009 6:14 am
by Navaldesign
Sample form ? Not sure what you mean.

Do you have other code in the Start of Page ?

If Yes, pls remove it. the processor code must be the very first code in the page code. Even a white line is output to the browser, thus causing the above error.

If you wish, copy / paste your page code here so i can see what your issue is.

Ticket system

Posted: Sun Jan 03, 2010 12:22 pm
by chattd
Happy New Year

Hi, Is there anyway to add a ticket system instead of replying via email address, Example http://www.svp.co.uk/contact.php
http://www.svp.co.uk/recall_messages.php

Posted: Mon Jan 04, 2010 12:00 am
by star57
Navel,
Been watching the streams here on the forum, I wanted to be one of the many to say a big thank you for all the hard work and responses.

Thanks

Posted: Mon Jan 04, 2010 6:47 am
by Navaldesign
Hi Star,

Thank you, very kind of you.

Have a wonderful 2010!

Posted: Fri Jan 15, 2010 10:34 pm
by DarrenH
Hi George

Could you please help me with the form.

I have made a normal form in WB6 and set the properties in the form to this:

Action= (it's blank)

Method = post

Encoding type = multipart/form-data

I have unticked the built in php form processorpart of the WB6 form properties

Next I have put your extension on the page, and filled in relevant data that I require.

On my server in the public_html folder I have created a directory called "xyz123" and in there put a filename called "name.pdf"

In the auto responder of the form I want the attachment "name.pdf" to be attached to the person who has filled in the email form

As the administrator I get the sign up form part ok. As the visitor to the site I get the form auto responder, but no attachment.

I have tried putting different things in the attachment part of your autoresponder settings of your extesnion - eg /xyz123/name.pdf
and http://www.mydomain.com/xyz123/name.pdf and also moved the "name.pdf into the directory "dbts_includes" on the server but the visitor still gets no attachment.

Any ideas?

Thank you as always

T