Parsing error - TP for fix
09-28-2007, 10:31 AM
|
Parsing error - TP for fix
|
Posts: 3,420
|
I'm getting a parse error on my Contact form page - I've got no idea why this is happening, but it is.
The page is here.
Line 415 is:
PHP Code:
<td align="center" class="margin"></td>
- I changed it to "margin" - it may have been magin or something?! That was after the problem came about.
The full code is below (it's extremely long):
PHP Code:
<?php echo '<?xml version="1.0" encoding="iso-8859-15" ?>'; ?>
<!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" xml:lang="en" lang="en"> <head> <title>Whym Web Hosting, based in Presteigne</title>
<meta http-equiv="Content-Type" content="text/html; charset =iso-8859-15" /> <meta name="keywords" content="whym web hosting, herefordshire, presteigne, knighton, kington, llandrindod wells, herefordshire, leominster, internet services, whym, mid wales, hosting, host, powys, stapleton, hereford, cpanel, the whym, presteigne web hosting" /> <meta name="description" content="Whym is a small company providing reliable web site hosting for individuals and small companies in Mid-Wales and Herefordshire" /> <link rel="stylesheet" href="http://whymhost.co.uk/style.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/Verdana.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/1b2f6a8ec0b919d0eca89017edb1c4af.css" type="text/css" />
<script language="JavaScript" type="text/javascript"> <!-- // PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/
DOM = (document.getElementById) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; // We need to explicitly detect Konqueror // because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!! Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0; // We need to detect Konqueror 2.2 as it does not handle the window.onresize event Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0; Konqueror30 = ( navigator.userAgent.indexOf('Konqueror 3.0') > -1 || navigator.userAgent.indexOf('Konqueror/3.0') > -1 || navigator.userAgent.indexOf('Konqueror 3;') > -1 || navigator.userAgent.indexOf('Konqueror/3;') > -1 || navigator.userAgent.indexOf('Konqueror 3)') > -1 || navigator.userAgent.indexOf('Konqueror/3)') > -1 ) ? 1 : 0; Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0; // We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0; Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0; Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0; Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0; Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0; Opera56 = Opera5 || Opera6; IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0; IE = IE && !Opera; IE5 = IE && DOM; IE4 = (document.all) ? 1 : 0; IE4 = IE4 && IE && !DOM;
// --> </script> <script language="JavaScript" type="text/javascript" src="js/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="js/layersmenu.js"></script>
<!-- beginning of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript">
<!--
menuTopShift = 6; menuRightShift = 7; menuLeftShift = 2;
var thresholdY = 1; var abscissaStep = 140;
toBeHidden = new Array(); toBeHiddenLeft = new Array(); toBeHiddenTop = new Array(); // List the Parent Page that contain submenu listl = ['L3','L6','L11'];
var numl = listl.length;
father = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { father['L' + i] = ''; }
// Father keys and vals must match the child and parents values father_keys = ['L4','L5','L7','L8','L9','L12','L13']; father_vals = ['L3','L3','L6','L6','L6','L11','L11'];
for (i=0; i<father_keys.length; i++) { father[father_keys[i]] = father_vals[i]; }
lwidth = new Array(); var lwidthDetected = 0;
function moveLayers() { if (!lwidthDetected) { for (i=0; i<numl; i++) { lwidth[listl[i]] = getOffsetWidth(listl[i]); } lwidthDetected = 1; } if (IE4) { for (i=0; i<numl; i++) { setWidth(listl[i], abscissaStep); } } var hormenu1TOP = getOffsetTop('hormenu1L1'); var hormenu1HEIGHT = getOffsetHeight('hormenu1L1');
// Add this 2 lines for each parent menu setTop('L3', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L3', 'hormenu1'); setTop('L6', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L6', 'hormenu1'); setTop('L11', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L11', 'hormenu1');
}
back = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { back['L' + i] = 0; }
// --> </script> <!-- end of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ -->
<script language="JavaScript" type="text/javascript"> function openCustomSize(PageURL, Width, Height, ToolBar, Location, StatusBar, MenuBar, Resizeable, ScrollBars) { if (Width > 0 && Height > 0) { var setTop = (screen.height - Height) / 2; var setLeft = (screen.width - Width) / 2; var siteOpen = 'width='+Width+', height='+Height+', left='+setLeft+', top='+setTop+', '; } else { //var siteOpen = 'fullscreen=yes, '; var siteOpen = 'width='+window.screen.availWidth+', height='+window.screen.availHeight+', left=0, top=0, '; } var siteOption = siteOpen+'toolbar='+ToolBar+', location='+Location+', status='+StatusBar+', menubar='+MenuBar+', resizable='+Resizeable+', scrollbars='+ScrollBars; SiteWindow = window.open(PageURL , "_blank", ""+siteOption+""); } </script>
</head>
<body> <table cellpadding="0" cellspacing="0" id="rv_top_adjust_width_0" width="100%"> <tr> <td class="bgtop"> <!-- START LOGO --> <div id="Layer1" style="position:absolute; left:114px; top:53px; width:auto; height:auto; text-align:center; z-index:1; overflow:visible; white-space:nowrap;"><a href="http://whymhost.co.uk/index.php" ><img src="LOGO.GIF?872aa88ce1926ce4dd50114fef20ed55" border="0" alt="Logo" /></a></div> <div id="Layer2" style="position:absolute; left:115px; top:24px; width:auto; height:auto; text-align:left; z-index:2; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="company"></div> <div id="Layer3" style="position:absolute; left:114px; top:150px; width:auto; height:auto; text-align:left; z-index:3; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="slogan"></div> <!-- END LOGO --> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td><img src="images/img_01.jpg" alt="" width="150" height="178" /></td> <td width="99%"></td> <td><img src="images/img_02.jpg" alt="" width="180" height="178" /></td> <td><img src="images/img_03.jpg" alt="" width="190" height="178" /></td> <td><img src="images/img_04.jpg" alt="" width="260" height="178" /></td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top"><img src="images/spacer.gif" alt="" width="7" height="1" /></td> <td align="left" valign="top" width="99%"> <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#3F3434"> <tr> <td align="left" valign="top" height="32" class="bgmenu"><div id="navigator"> <ul id="navigator"> <li><div id="hormenu1L1" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/index.php" id="normal" onmouseover="shutdown();" target="_self" >Home</a></div></li> <li><div id="hormenu1L2" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/faq.php" id="normal" onmouseover="shutdown();" target="_self" >FAQ</a></div></li> <li><div id="hormenu1L3" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Support.php" id="normal" onmouseover="moveLayerX1('L3', 'hormenu1'); LMPopUp('L3', false);" target="_self" >Support <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L6" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/cpanel" id="normal" onmouseover="moveLayerX1('L6', 'hormenu1'); LMPopUp('L6', false);" target="_self" >Login <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L10" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Contact.php" id="normal" onmouseover="shutdown();" target="_self" >Contact</a></div></li> <li><div id="hormenu1L11" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Terms.php" id="normal" onmouseover="moveLayerX1('L11', 'hormenu1'); LMPopUp('L11', false);" target="_self" >Legal <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> </ul> </div>
<!-- START SUBMENU DATA --> <!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <div id="L3" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL4" class="item"> <a href="http://whymhost.co.uk/Contact.php" onmouseover="LMPopUp('L3', true);" target="_self" > Contact information </a></div> <div id="refL5" class="item"> <a href="http://whymhost.co.uk/cPanel-video-tutorials.php" onmouseover="LMPopUp('L3', true);" target="_self" > cPanel video tutorials </a> </div> </div> </td> </tr> </table> </div> <div id="L6" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL7" class="item"> <a href="http://whymhost.co.uk/cpanel" onmouseover="LMPopUp('L6', true);" target="_self" > Control Panel </a></div> <div id="refL8" class="item"> <a href="http://whymhost.co.uk/mail" onmouseover="LMPopUp('L6', true);" target="_self" > WebMail </a></div> <div id="refL9" class="item"> <a href="http://whymwebhosting.co.uk/billing" onmouseover="LMPopUp('L6', true);" target="_self" > Billing </a></div> </div> </td> </tr> </table> </div> <div id="L11" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL12" class="item"> <a href="http://whymhost.co.uk/Terms.php" onmouseover="LMPopUp('L11', true);" target="_self" > Terms </a> </div> <div id="refL13" class="item"> <a href="http://whymhost.co.uk/Privacy-policy.php" onmouseover="LMPopUp('L11', true);" target="_self" > Privacy policy </a> </div> </div> </td> </tr> </table> </div>
<script language="JavaScript" type="text/javascript"> <!-- loaded = 1; // --> </script> <!-- end of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <!-- END SUBMENU DATA --> </td> </tr> <tr> <td class="line"><img src="images/spacer.gif" alt="" width="1" height="11" /></td> </tr>
<!-- Begin PATHWAY and ICON --> <tr> <td class="magin"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <!-- Begin PATHWAY --> <td align="left" width="99%"></td> <!-- End PATHWAY --> <!-- Begin ICON --> <td align="right"><table cellpadding="0" cellspacing="0" width="100%"><tr></tr></table></td> <!-- End ICON --> </tr> </table> </td> </tr> <!-- End PATHWAY and ICON --> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr>
<td align="left" valign="top" class="magin" id="rv_adjust_width_17"> <?php $conf = array(); $conf['mail_to'] = 'admin@whymwebhosting.co.uk'; // Email mail is sent to (change this from default as it was used for testing purposes $conf['mail_subject'] = 'Form Data Sent'; // The subject of the email you want to see when your form is submitted $conf['mail_from'] = 'no-reply@whymwebhosting.co.uk'; // The email address you want to appear sent the message (leave blank to make no email appear) $conf['turned_on'] = '1'; // If you ever need to shut this form off for any reason change this value to 0 instead of 1
if ($conf['turned_on'] != '1') { print "This program has been turned off. Contact the system administrator for more information."; die; }
if (!isset($_SESSION['ver_num_added']) || !isset($_SESSION['ver_num_1']) || !isset($_SESSION['ver_num_2'])) { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; }
if ($_POST['submit_formed'] == 'Send') { if (trim($_POST['full_name']) == '') { $errors = "<br />Full name left empty."; } if (trim($_POST['email']) == '') { $errors .= "<br />Email left empty."; } if (trim($_POST['comments']) == '') { $errors .= "<br />Comments left empty."; } if ($_POST['ver_num'] != $_SESSION['ver_num_added']) { $errors .= "<br />Verification numbers where not correct when added"; } if (isset($errors)) { $outprint = "<b>The following errors have occurred:</b><br />" . $errors; } else { $content = "The following information was submitted using your contact form at Whym Hosting Full Name: " . $_POST['full_name'] . " Email: " . $_POST['email'] . " Comments: " . $_POST['comments']; if (trim($_POST['telephone']) != '') { $content .= " Telephone: " . $_POST['telephone']; } else { $content .= " Telephone: None supplied in form"; } $content .= "
Thankyou"; if (trim($conf['mail_from']) == '') { $headers = 'From: ' . $conf['mail_from']; mail ($conf['mail_to'], $conf['mail_subject'], $content, $headers); } else { mail ($conf['mail_to'], $conf['mail_subject'], $content); } $outprint = "<font color='green'><b>Message sent:</b></font> Your message has been sent."; } } else { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; }
print " <form method='POST'> <table width='50%' height='1' style='border: 1px solid #1F1212; background: #3F3434;'> <tr><td width='100%' height='1'> <span style='font-size: 18px; color: #ffffff;'>Email: support@whymhost.co.uk <br /> Skype: whymweb <br /> Address: Whym Web Hosting, The Whym, Stapleton, Presteigne, Powys, LD8 2LT</span> </td> </tr> <tr><td width='100%' height='1'> <br /> <table width='100%' height='1' bgcolor='#3F3434'> <tr><td width='100%' colspan='2' align='center'> <font size='2'>All fields marked with </font><font size='2' color='red'>*</font> <font size='2'>are required</font> <br />";
if (isset($outprint)) { print $outprint . '<br /><br />'; } else { print '<br />'; }
print " </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Full Name:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='full_name' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Email Address:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='email' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'>Telephone:</b></font> </td> <td width='75%' align='left'><input type='text' name='telephone' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Comments:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><textarea name='comments' rows='10' cols='25'></td>
</tr> </table> </td> </tr> <!-- Begin FOOTER --> <tr> <td align="center" class="margin"></td> </tr> <!-- End FOOTER -->
<tr> <td align="center" valign="bottom"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom" class="marginpw"></td> <td width="8"></td> <td align="center" valign="bottom" class="marginpw"></td> </tr> </table> </td> </tr> <tr><td class="bgbottom"><img src="images/spacer.gif" alt="" width="1" height="18" /></td></tr> </table> </td> <td valign="top"><img src="images/spacer.gif" alt="" width="6" height="1" /></td> </tr> </table> </td> </tr> </table> </body> </html>
<!-- Publish RVSiteBuilder Version 2.12 --> <!-- Publish RVSiteBuilder Version 2.12 -->
As you can see, I haven't built this page myself and the markup is rubbish - I'm hopefully going to redo the entire site in the foreseeable future.
Talkupation for the fix to this (it's probably simple but I haven't got much of a clue about PHP)
|
|
|
|
09-28-2007, 12:04 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
Here,
PHP Code:
<?php echo '<?xml version="1.0" encoding="iso-8859-15" ?>'; ?> <!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" xml:lang="en" lang="en"> <head> <title>Whym Web Hosting, based in Presteigne</title> <meta http-equiv="Content-Type" content="text/html; charset =iso-8859-15" /> <meta name="keywords" content="whym web hosting, herefordshire, presteigne, knighton, kington, llandrindod wells, herefordshire, leominster, internet services, whym, mid wales, hosting, host, powys, stapleton, hereford, cpanel, the whym, presteigne web hosting" /> <meta name="description" content="Whym is a small company providing reliable web site hosting for individuals and small companies in Mid-Wales and Herefordshire" /> <link rel="stylesheet" href="http://whymhost.co.uk/style.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/Verdana.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/1b2f6a8ec0b919d0eca89017edb1c4af.css" type="text/css" /> <script language="JavaScript" type="text/javascript"> <!-- // PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ DOM = (document.getElementById) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; // We need to explicitly detect Konqueror // because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!! Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0; // We need to detect Konqueror 2.2 as it does not handle the window.onresize event Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0; Konqueror30 = ( navigator.userAgent.indexOf('Konqueror 3.0') > -1 || navigator.userAgent.indexOf('Konqueror/3.0') > -1 || navigator.userAgent.indexOf('Konqueror 3;') > -1 || navigator.userAgent.indexOf('Konqueror/3;') > -1 || navigator.userAgent.indexOf('Konqueror 3)') > -1 || navigator.userAgent.indexOf('Konqueror/3)') > -1 ) ? 1 : 0; Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0; // We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0; Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0; Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0; Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0; Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0; Opera56 = Opera5 || Opera6; IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0; IE = IE && !Opera; IE5 = IE && DOM; IE4 = (document.all) ? 1 : 0; IE4 = IE4 && IE && !DOM; // --> </script> <script language="JavaScript" type="text/javascript" src="js/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="js/layersmenu.js"></script> <!-- beginning of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript"> <!-- menuTopShift = 6; menuRightShift = 7; menuLeftShift = 2; var thresholdY = 1; var abscissaStep = 140; toBeHidden = new Array(); toBeHiddenLeft = new Array(); toBeHiddenTop = new Array(); // List the Parent Page that contain submenu listl = ['L3','L6','L11']; var numl = listl.length; father = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { father['L' + i] = ''; } // Father keys and vals must match the child and parents values father_keys = ['L4','L5','L7','L8','L9','L12','L13']; father_vals = ['L3','L3','L6','L6','L6','L11','L11']; for (i=0; i<father_keys.length; i++) { father[father_keys[i]] = father_vals[i]; } lwidth = new Array(); var lwidthDetected = 0; function moveLayers() { if (!lwidthDetected) { for (i=0; i<numl; i++) { lwidth[listl[i]] = getOffsetWidth(listl[i]); } lwidthDetected = 1; } if (IE4) { for (i=0; i<numl; i++) { setWidth(listl[i], abscissaStep); } } var hormenu1TOP = getOffsetTop('hormenu1L1'); var hormenu1HEIGHT = getOffsetHeight('hormenu1L1'); // Add this 2 lines for each parent menu setTop('L3', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L3', 'hormenu1'); setTop('L6', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L6', 'hormenu1'); setTop('L11', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L11', 'hormenu1'); } back = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { back['L' + i] = 0; } // --> </script> <!-- end of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ -->
<script language="JavaScript" type="text/javascript"> function openCustomSize(PageURL, Width, Height, ToolBar, Location, StatusBar, MenuBar, Resizeable, ScrollBars) { if (Width > 0 && Height > 0) { var setTop = (screen.height - Height) / 2; var setLeft = (screen.width - Width) / 2; var siteOpen = 'width='+Width+', height='+Height+', left='+setLeft+', top='+setTop+', '; } else { //var siteOpen = 'fullscreen=yes, '; var siteOpen = 'width='+window.screen.availWidth+', height='+window.screen.availHeight+', left=0, top=0, '; } var siteOption = siteOpen+'toolbar='+ToolBar+', location='+Location+', status='+StatusBar+', menubar='+MenuBar+', resizable='+Resizeable+', scrollbars='+ScrollBars; SiteWindow = window.open(PageURL , "_blank", ""+siteOption+""); } </script> </head> <body> <table cellpadding="0" cellspacing="0" id="rv_top_adjust_width_0" width="100%"> <tr> <td class="bgtop"> <!-- START LOGO --> <div id="Layer1" style="position:absolute; left:114px; top:53px; width:auto; height:auto; text-align:center; z-index:1; overflow:visible; white-space:nowrap;"><a href="http://whymhost.co.uk/index.php" ><img src="LOGO.GIF?872aa88ce1926ce4dd50114fef20ed55" border="0" alt="Logo" /></a></div> <div id="Layer2" style="position:absolute; left:115px; top:24px; width:auto; height:auto; text-align:left; z-index:2; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="company"></div> <div id="Layer3" style="position:absolute; left:114px; top:150px; width:auto; height:auto; text-align:left; z-index:3; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="slogan"></div> <!-- END LOGO --> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td><img src="images/img_01.jpg" alt="" width="150" height="178" /></td> <td width="99%"></td> <td><img src="images/img_02.jpg" alt="" width="180" height="178" /></td> <td><img src="images/img_03.jpg" alt="" width="190" height="178" /></td> <td><img src="images/img_04.jpg" alt="" width="260" height="178" /></td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top"><img src="images/spacer.gif" alt="" width="7" height="1" /></td> <td align="left" valign="top" width="99%"> <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#3F3434"> <tr> <td align="left" valign="top" height="32" class="bgmenu"><div id="navigator"> <ul id="navigator"> <li><div id="hormenu1L1" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/index.php" id="normal" onmouseover="shutdown();" target="_self" >Home</a></div></li> <li><div id="hormenu1L2" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/faq.php" id="normal" onmouseover="shutdown();" target="_self" >FAQ</a></div></li> <li><div id="hormenu1L3" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Support.php" id="normal" onmouseover="moveLayerX1('L3', 'hormenu1'); LMPopUp('L3', false);" target="_self" >Support <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L6" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/cpanel" id="normal" onmouseover="moveLayerX1('L6', 'hormenu1'); LMPopUp('L6', false);" target="_self" >Login <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L10" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Contact.php" id="normal" onmouseover="shutdown();" target="_self" >Contact</a></div></li> <li><div id="hormenu1L11" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Terms.php" id="normal" onmouseover="moveLayerX1('L11', 'hormenu1'); LMPopUp('L11', false);" target="_self" >Legal <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> </ul> </div> <!-- START SUBMENU DATA --> <!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <div id="L3" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL4" class="item"> <a href="http://whymhost.co.uk/Contact.php" onmouseover="LMPopUp('L3', true);" target="_self" > Contact information </a></div> <div id="refL5" class="item"> <a href="http://whymhost.co.uk/cPanel-video-tutorials.php" onmouseover="LMPopUp('L3', true);" target="_self" > cPanel video tutorials </a> </div> </div> </td> </tr> </table> </div> <div id="L6" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL7" class="item"> <a href="http://whymhost.co.uk/cpanel" onmouseover="LMPopUp('L6', true);" target="_self" > Control Panel </a></div> <div id="refL8" class="item"> <a href="http://whymhost.co.uk/mail" onmouseover="LMPopUp('L6', true);" target="_self" > WebMail </a></div> <div id="refL9" class="item"> <a href="http://whymwebhosting.co.uk/billing" onmouseover="LMPopUp('L6', true);" target="_self" > Billing </a></div> </div> </td> </tr> </table> </div> <div id="L11" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL12" class="item"> <a href="http://whymhost.co.uk/Terms.php" onmouseover="LMPopUp('L11', true);" target="_self" > Terms </a> </div> <div id="refL13" class="item"> <a href="http://whymhost.co.uk/Privacy-policy.php" onmouseover="LMPopUp('L11', true);" target="_self" > Privacy policy </a> </div> </div> </td> </tr> </table> </div> <script language="JavaScript" type="text/javascript"> <!-- loaded = 1; // --> </script> <!-- end of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <!-- END SUBMENU DATA --> </td> </tr> <tr> <td class="line"><img src="images/spacer.gif" alt="" width="1" height="11" /></td> </tr> <!-- Begin PATHWAY and ICON --> <tr> <td class="magin"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <!-- Begin PATHWAY --> <td align="left" width="99%"></td> <!-- End PATHWAY --> <!-- Begin ICON --> <td align="right"><table cellpadding="0" cellspacing="0" width="100%"><tr></tr></table></td> <!-- End ICON --> </tr> </table> </td> </tr> <!-- End PATHWAY and ICON --> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" class="magin" id="rv_adjust_width_17"> <?php $conf = array(); $conf['mail_to'] = 'admin@whymwebhosting.co.uk'; // Email mail is sent to (change this from default as it was used for testing purposes $conf['mail_subject'] = 'Form Data Sent'; // The subject of the email you want to see when your form is submitted $conf['mail_from'] = 'no-reply@whymwebhosting.co.uk'; // The email address you want to appear sent the message (leave blank to make no email appear) $conf['turned_on'] = '1'; // If you ever need to shut this form off for any reason change this value to 0 instead of 1 if ($conf['turned_on'] != '1') { print "This program has been turned off. Contact the system administrator for more information."; die; } if (!isset($_SESSION['ver_num_added']) || !isset($_SESSION['ver_num_1']) || !isset($_SESSION['ver_num_2'])) { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } if ($_POST['submit_formed'] == 'Send') { if (trim($_POST['full_name']) == '') { $errors = "<br />Full name left empty."; } if (trim($_POST['email']) == '') { $errors .= "<br />Email left empty."; } if (trim($_POST['comments']) == '') { $errors .= "<br />Comments left empty."; } if ($_POST['ver_num'] != $_SESSION['ver_num_added']) { $errors .= "<br />Verification numbers where not correct when added"; } if (isset($errors)) { $outprint = "<b>The following errors have occurred:</b><br />" . $errors; } else { $content = "The following information was submitted using your contact form at Whym Hosting Full Name: " . $_POST['full_name'] . " Email: " . $_POST['email'] . " Comments: " . $_POST['comments']; if (trim($_POST['telephone']) != '') { $content .= " Telephone: " . $_POST['telephone']; } else { $content .= " Telephone: None supplied in form"; } $content .= " Thankyou"; if (trim($conf['mail_from']) == '') { $headers = 'From: ' . $conf['mail_from']; mail ($conf['mail_to'], $conf['mail_subject'], $content, $headers); } else { mail ($conf['mail_to'], $conf['mail_subject'], $content); } $outprint = "<font color='green'><b>Message sent:</b></font> Your message has been sent."; } } else { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } print " <form method='POST'> <table width='50%' height='1' style='border: 1px solid #1F1212; background: #3F3434;'> <tr><td width='100%' height='1'> <span style='font-size: 18px; color: #ffffff;'>Email: support@whymhost.co.uk <br /> Skype: whymweb <br /> Address: Whym Web Hosting, The Whym, Stapleton, Presteigne, Powys, LD8 2LT</span> </td> </tr> <tr><td width='100%' height='1'> <br /> <table width='100%' height='1' bgcolor='#3F3434'> <tr><td width='100%' colspan='2' align='center'> <font size='2'>All fields marked with </font><font size='2' color='red'>*</font> <font size='2'>are required</font> <br />"; if (isset($outprint)) { print $outprint . '<br /><br />'; } else { print '<br />'; } print " </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Full Name:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='full_name' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Email Address:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='email' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'>Telephone:</b></font> </td> <td width='75%' align='left'><input type='text' name='telephone' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Comments:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><textarea name='comments' rows='10' cols='25'></td> </tr> </table> </td> </tr> <!-- Begin FOOTER --> <tr> ".' <td align="center" class="margin"></td> </tr> <!-- End FOOTER --> <tr> <td align="center" valign="bottom"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom" class="marginpw"></td> <td width="8"></td> <td align="center" valign="bottom" class="marginpw"></td> </tr> </table> </td> </tr> <tr><td class="bgbottom"><img src="images/spacer.gif" alt="" width="1" height="18" /></td></tr> </table> </td> <td valign="top"><img src="images/spacer.gif" alt="" width="6" height="1" /></td> </tr> </table> </td> </tr> </table> </body> </html> <!-- Publish RVSiteBuilder Version 2.12 -->';
TP please 
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 12:17 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
Dan, thanks for that, but there's now a problem with the search box - you probably haven't closed a tag or something?
http://whymhost.co.uk/Contact.php - look in the comments box - you'll see what I mean
|
|
|
|
09-28-2007, 12:29 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
That really is some terrible coding, and you wonder why i wont touch the site builders
PHP Code:
<?php echo '<?xml version="1.0" encoding="iso-8859-15" ?>'; ?> <!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" xml:lang="en" lang="en"> <head> <title>Whym Web Hosting, based in Presteigne</title> <meta http-equiv="Content-Type" content="text/html; charset =iso-8859-15" /> <meta name="keywords" content="whym web hosting, herefordshire, presteigne, knighton, kington, llandrindod wells, herefordshire, leominster, internet services, whym, mid wales, hosting, host, powys, stapleton, hereford, cpanel, the whym, presteigne web hosting" /> <meta name="description" content="Whym is a small company providing reliable web site hosting for individuals and small companies in Mid-Wales and Herefordshire" /> <link rel="stylesheet" href="http://whymhost.co.uk/style.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/Verdana.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/1b2f6a8ec0b919d0eca89017edb1c4af.css" type="text/css" /> <script language="JavaScript" type="text/javascript"> <!-- // PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ DOM = (document.getElementById) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; // We need to explicitly detect Konqueror // because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!! Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0; // We need to detect Konqueror 2.2 as it does not handle the window.onresize event Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0; Konqueror30 = ( navigator.userAgent.indexOf('Konqueror 3.0') > -1 || navigator.userAgent.indexOf('Konqueror/3.0') > -1 || navigator.userAgent.indexOf('Konqueror 3;') > -1 || navigator.userAgent.indexOf('Konqueror/3;') > -1 || navigator.userAgent.indexOf('Konqueror 3)') > -1 || navigator.userAgent.indexOf('Konqueror/3)') > -1 ) ? 1 : 0; Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0; // We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0; Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0; Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0; Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0; Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0; Opera56 = Opera5 || Opera6; IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0; IE = IE && !Opera; IE5 = IE && DOM; IE4 = (document.all) ? 1 : 0; IE4 = IE4 && IE && !DOM; // --> </script> <script language="JavaScript" type="text/javascript" src="js/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="js/layersmenu.js"></script> <!-- beginning of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript"> <!-- menuTopShift = 6; menuRightShift = 7; menuLeftShift = 2; var thresholdY = 1; var abscissaStep = 140; toBeHidden = new Array(); toBeHiddenLeft = new Array(); toBeHiddenTop = new Array(); // List the Parent Page that contain submenu listl = ['L3','L6','L11']; var numl = listl.length; father = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { father['L' + i] = ''; } // Father keys and vals must match the child and parents values father_keys = ['L4','L5','L7','L8','L9','L12','L13']; father_vals = ['L3','L3','L6','L6','L6','L11','L11']; for (i=0; i<father_keys.length; i++) { father[father_keys[i]] = father_vals[i]; } lwidth = new Array(); var lwidthDetected = 0; function moveLayers() { if (!lwidthDetected) { for (i=0; i<numl; i++) { lwidth[listl[i]] = getOffsetWidth(listl[i]); } lwidthDetected = 1; } if (IE4) { for (i=0; i<numl; i++) { setWidth(listl[i], abscissaStep); } } var hormenu1TOP = getOffsetTop('hormenu1L1'); var hormenu1HEIGHT = getOffsetHeight('hormenu1L1'); // Add this 2 lines for each parent menu setTop('L3', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L3', 'hormenu1'); setTop('L6', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L6', 'hormenu1'); setTop('L11', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L11', 'hormenu1'); } back = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { back['L' + i] = 0; } // --> </script> <!-- end of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript"> function openCustomSize(PageURL, Width, Height, ToolBar, Location, StatusBar, MenuBar, Resizeable, ScrollBars) { if (Width > 0 && Height > 0) { var setTop = (screen.height - Height) / 2; var setLeft = (screen.width - Width) / 2; var siteOpen = 'width='+Width+', height='+Height+', left='+setLeft+', top='+setTop+', '; } else { //var siteOpen = 'fullscreen=yes, '; var siteOpen = 'width='+window.screen.availWidth+', height='+window.screen.availHeight+', left=0, top=0, '; } var siteOption = siteOpen+'toolbar='+ToolBar+', location='+Location+', status='+StatusBar+', menubar='+MenuBar+', resizable='+Resizeable+', scrollbars='+ScrollBars; SiteWindow = window.open(PageURL , "_blank", ""+siteOption+""); } </script> </head> <body> <table cellpadding="0" cellspacing="0" id="rv_top_adjust_width_0" width="100%"> <tr> <td class="bgtop"> <!-- START LOGO --> <div id="Layer1" style="position:absolute; left:114px; top:53px; width:auto; height:auto; text-align:center; z-index:1; overflow:visible; white-space:nowrap;"><a href="http://whymhost.co.uk/index.php" ><img src="LOGO.GIF?872aa88ce1926ce4dd50114fef20ed55" border="0" alt="Logo" /></a></div> <div id="Layer2" style="position:absolute; left:115px; top:24px; width:auto; height:auto; text-align:left; z-index:2; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="company"></div> <div id="Layer3" style="position:absolute; left:114px; top:150px; width:auto; height:auto; text-align:left; z-index:3; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="slogan"></div> <!-- END LOGO --> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td><img src="http://www.webmaster-talk.com/images/img_01.jpg" alt="" width="150" height="178" /></td> <td width="99%"></td> <td><img src="http://www.webmaster-talk.com/images/img_02.jpg" alt="" width="180" height="178" /></td> <td><img src="http://www.webmaster-talk.com/images/img_03.jpg" alt="" width="190" height="178" /></td> <td><img src="http://www.webmaster-talk.com/images/img_04.jpg" alt="" width="260" height="178" /></td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top"><img src="http://www.webmaster-talk.com/images/spacer.gif" alt="" width="7" height="1" /></td> <td align="left" valign="top" width="99%"> <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#3F3434"> <tr> <td align="left" valign="top" height="32" class="bgmenu"><div id="navigator"> <ul id="navigator"> <li><div id="hormenu1L1" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/index.php" id="normal" onmouseover="shutdown();" target="_self" >Home</a></div></li> <li><div id="hormenu1L2" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/faq.php" id="normal" onmouseover="shutdown();" target="_self" >FAQ</a></div></li> <li><div id="hormenu1L3" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Support.php" id="normal" onmouseover="moveLayerX1('L3', 'hormenu1'); LMPopUp('L3', false);" target="_self" >Support <img src="http://www.webmaster-talk.com/images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L6" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/cpanel" id="normal" onmouseover="moveLayerX1('L6', 'hormenu1'); LMPopUp('L6', false);" target="_self" >Login <img src="http://www.webmaster-talk.com/images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L10" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Contact.php" id="normal" onmouseover="shutdown();" target="_self" >Contact</a></div></li> <li><div id="hormenu1L11" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Terms.php" id="normal" onmouseover="moveLayerX1('L11', 'hormenu1'); LMPopUp('L11', false);" target="_self" >Legal <img src="http://www.webmaster-talk.com/images/down-arrow.gif" border="0" alt=">" /></a></div></li> </ul> </div> <!-- START SUBMENU DATA --> <!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <div id="L3" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL4" class="item"> <a href="http://whymhost.co.uk/Contact.php" onmouseover="LMPopUp('L3', true);" target="_self" > Contact information </a></div> <div id="refL5" class="item"> <a href="http://whymhost.co.uk/cPanel-video-tutorials.php" onmouseover="LMPopUp('L3', true);" target="_self" > cPanel video tutorials </a> </div> </div> </td> </tr> </table> </div> <div id="L6" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL7" class="item"> <a href="http://whymhost.co.uk/cpanel" onmouseover="LMPopUp('L6', true);" target="_self" > Control Panel </a></div> <div id="refL8" class="item"> <a href="http://whymhost.co.uk/mail" onmouseover="LMPopUp('L6', true);" target="_self" > WebMail </a></div> <div id="refL9" class="item"> <a href="http://whymwebhosting.co.uk/billing" onmouseover="LMPopUp('L6', true);" target="_self" > Billing </a></div> </div> </td> </tr> </table> </div> <div id="L11" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL12" class="item"> <a href="http://whymhost.co.uk/Terms.php" onmouseover="LMPopUp('L11', true);" target="_self" > Terms </a> </div> <div id="refL13" class="item"> <a href="http://whymhost.co.uk/Privacy-policy.php" onmouseover="LMPopUp('L11', true);" target="_self" > Privacy policy </a> </div> </div> </td> </tr> </table> </div> <script language="JavaScript" type="text/javascript"> <!-- loaded = 1; // --> </script> <!-- end of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <!-- END SUBMENU DATA --> </td> </tr> <tr> <td class="line"><img src="http://www.webmaster-talk.com/images/spacer.gif" alt="" width="1" height="11" /></td> </tr> <!-- Begin PATHWAY and ICON --> <tr> <td class="magin"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <!-- Begin PATHWAY --> <td align="left" width="99%"></td> <!-- End PATHWAY --> <!-- Begin ICON --> <td align="right"><table cellpadding="0" cellspacing="0" width="100%"><tr></tr></table></td> <!-- End ICON --> </tr> </table> </td> </tr> <!-- End PATHWAY and ICON --> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" class="magin" id="rv_adjust_width_17"> <?php $conf = array(); $conf['mail_to'] = 'admin@whymwebhosting.co.uk'; // Email mail is sent to (change this from default as it was used for testing purposes $conf['mail_subject'] = 'Form Data Sent'; // The subject of the email you want to see when your form is submitted $conf['mail_from'] = 'no-reply@whymwebhosting.co.uk'; // The email address you want to appear sent the message (leave blank to make no email appear) $conf['turned_on'] = '1'; // If you ever need to shut this form off for any reason change this value to 0 instead of 1 if ($conf['turned_on'] != '1') { print "This program has been turned off. Contact the system administrator for more information."; die; } if (!isset($_SESSION['ver_num_added']) || !isset($_SESSION['ver_num_1']) || !isset($_SESSION['ver_num_2'])) { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } if ($_POST['submit_formed'] == 'Send') { if (trim($_POST['full_name']) == '') { $errors = "<br />Full name left empty."; } if (trim($_POST['email']) == '') { $errors .= "<br />Email left empty."; } if (trim($_POST['comments']) == '') { $errors .= "<br />Comments left empty."; } if ($_POST['ver_num'] != $_SESSION['ver_num_added']) { $errors .= "<br />Verification numbers where not correct when added"; } if (isset($errors)) { $outprint = "<b>The following errors have occurred:</b><br />" . $errors; } else { $content = "The following information was submitted using your contact form at Whym Hosting Full Name: " . $_POST['full_name'] . " Email: " . $_POST['email'] . " Comments: " . $_POST['comments']; if (trim($_POST['telephone']) != '') { $content .= " Telephone: " . $_POST['telephone']; } else { $content .= " Telephone: None supplied in form"; } $content .= " Thankyou"; if (trim($conf['mail_from']) == '') { $headers = 'From: ' . $conf['mail_from']; mail ($conf['mail_to'], $conf['mail_subject'], $content, $headers); } else { mail ($conf['mail_to'], $conf['mail_subject'], $content); } $outprint = "<font color='green'><b>Message sent:</b></font> Your message has been sent."; } } else { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } print " <form method='POST'> <table width='50%' height='1' style='border: 1px solid #1F1212; background: #3F3434;'> <tr><td width='100%' height='1'> <span style='font-size: 18px; color: #ffffff;'>Email: support@whymhost.co.uk <br /> Skype: whymweb <br /> Address: Whym Web Hosting, The Whym, Stapleton, Presteigne, Powys, LD8 2LT</span> </td> </tr> <tr><td width='100%' height='1'> <br /> <table width='100%' height='1' bgcolor='#3F3434'> <tr><td width='100%' colspan='2' align='center'> <font size='2'>All fields marked with </font><font size='2' color='red'>*</font> <font size='2'>are required</font> <br />"; if (isset($outprint)) { print $outprint . '<br /><br />'; } else { print '<br />'; } print " </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Full Name:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='full_name' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Email Address:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='email' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'>Telephone:</b></font> </td> <td width='75%' align='left'><input type='text' name='telephone' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Comments:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><textarea name='comments' rows='10' cols='25'></textarea></td> </tr> </table> </td> </tr> <!-- Begin FOOTER --> <tr> ".' <td align="center" class="margin"></td> </tr> <!-- End FOOTER --> <tr> <td align="center" valign="bottom"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom" class="marginpw"></td> <td width="8"></td> <td align="center" valign="bottom" class="marginpw"></td> </tr> </table> </td> </tr> <tr><td class="bgbottom"><img src="http://www.webmaster-talk.com/images/spacer.gif" alt="" width="1" height="18" /></td></tr> </table> </td> <td valign="top"><img src="http://www.webmaster-talk.com/images/spacer.gif" alt="" width="6" height="1" /></td> </tr> </table> </td> </tr> </table> </body> </html> <!-- Publish RVSiteBuilder Version 2.12 -->';
they didnt bother putting a end text area
I didnt forget nought
Can i have my TP not santa?
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
Last edited by dansgalaxy; 09-28-2007 at 12:34 PM..
|
|
|
|
09-28-2007, 12:37 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
It's not working again!
Take a look!
http://whymhost.co.uk/Contact.php
I've got no idea what you've done but you've mucked the page up  !
|
|
|
|
09-28-2007, 12:41 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
i have no clue why
thats probabally all that crappy javascript which is needed.
try this incase i some how deleted some by mistake
PHP Code:
<?php echo '<?xml version="1.0" encoding="iso-8859-15" ?>'; ?> <!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" xml:lang="en" lang="en"> <head> <title>Whym Web Hosting, based in Presteigne</title> <meta http-equiv="Content-Type" content="text/html; charset =iso-8859-15" /> <meta name="keywords" content="whym web hosting, herefordshire, presteigne, knighton, kington, llandrindod wells, herefordshire, leominster, internet services, whym, mid wales, hosting, host, powys, stapleton, hereford, cpanel, the whym, presteigne web hosting" /> <meta name="description" content="Whym is a small company providing reliable web site hosting for individuals and small companies in Mid-Wales and Herefordshire" /> <link rel="stylesheet" href="http://whymhost.co.uk/style.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/Verdana.css" type="text/css" /> <link rel="stylesheet" href="http://whymhost.co.uk/1b2f6a8ec0b919d0eca89017edb1c4af.css" type="text/css" /> <script language="JavaScript" type="text/javascript"> <!-- // PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ DOM = (document.getElementById) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; // We need to explicitly detect Konqueror // because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!! Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0; // We need to detect Konqueror 2.2 as it does not handle the window.onresize event Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0; Konqueror30 = ( navigator.userAgent.indexOf('Konqueror 3.0') > -1 || navigator.userAgent.indexOf('Konqueror/3.0') > -1 || navigator.userAgent.indexOf('Konqueror 3;') > -1 || navigator.userAgent.indexOf('Konqueror/3;') > -1 || navigator.userAgent.indexOf('Konqueror 3)') > -1 || navigator.userAgent.indexOf('Konqueror/3)') > -1 ) ? 1 : 0; Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0; // We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0; Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0; Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0; Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0; Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0; Opera56 = Opera5 || Opera6; IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0; IE = IE && !Opera; IE5 = IE && DOM; IE4 = (document.all) ? 1 : 0; IE4 = IE4 && IE && !DOM; // --> </script> <script language="JavaScript" type="text/javascript" src="js/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="js/layersmenu.js"></script> <!-- beginning of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript"> <!-- menuTopShift = 6; menuRightShift = 7; menuLeftShift = 2; var thresholdY = 1; var abscissaStep = 140; toBeHidden = new Array(); toBeHiddenLeft = new Array(); toBeHiddenTop = new Array(); // List the Parent Page that contain submenu listl = ['L3','L6','L11']; var numl = listl.length; father = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { father['L' + i] = ''; } // Father keys and vals must match the child and parents values father_keys = ['L4','L5','L7','L8','L9','L12','L13']; father_vals = ['L3','L3','L6','L6','L6','L11','L11']; for (i=0; i<father_keys.length; i++) { father[father_keys[i]] = father_vals[i]; } lwidth = new Array(); var lwidthDetected = 0; function moveLayers() { if (!lwidthDetected) { for (i=0; i<numl; i++) { lwidth[listl[i]] = getOffsetWidth(listl[i]); } lwidthDetected = 1; } if (IE4) { for (i=0; i<numl; i++) { setWidth(listl[i], abscissaStep); } } var hormenu1TOP = getOffsetTop('hormenu1L1'); var hormenu1HEIGHT = getOffsetHeight('hormenu1L1'); // Add this 2 lines for each parent menu setTop('L3', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L3', 'hormenu1'); setTop('L6', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L6', 'hormenu1'); setTop('L11', hormenu1TOP + hormenu1HEIGHT); moveLayerX1('L11', 'hormenu1'); } back = new Array(); // $i is the total menu including parent menu for (i=1; i<=13; i++) { back['L' + i] = 0; } // --> </script> <!-- end of menu header - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <script language="JavaScript" type="text/javascript"> function openCustomSize(PageURL, Width, Height, ToolBar, Location, StatusBar, MenuBar, Resizeable, ScrollBars) { if (Width > 0 && Height > 0) { var setTop = (screen.height - Height) / 2; var setLeft = (screen.width - Width) / 2; var siteOpen = 'width='+Width+', height='+Height+', left='+setLeft+', top='+setTop+', '; } else { //var siteOpen = 'fullscreen=yes, '; var siteOpen = 'width='+window.screen.availWidth+', height='+window.screen.availHeight+', left=0, top=0, '; } var siteOption = siteOpen+'toolbar='+ToolBar+', location='+Location+', status='+StatusBar+', menubar='+MenuBar+', resizable='+Resizeable+', scrollbars='+ScrollBars; SiteWindow = window.open(PageURL , "_blank", ""+siteOption+""); } </script> </head> <body> <table cellpadding="0" cellspacing="0" id="rv_top_adjust_width_0" width="100%"> <tr> <td class="bgtop"> <!-- START LOGO --> <div id="Layer1" style="position:absolute; left:114px; top:53px; width:auto; height:auto; text-align:center; z-index:1; overflow:visible; white-space:nowrap;"><a href="http://whymhost.co.uk/index.php" ><img src="LOGO.GIF?872aa88ce1926ce4dd50114fef20ed55" border="0" alt="Logo" /></a></div> <div id="Layer2" style="position:absolute; left:115px; top:24px; width:auto; height:auto; text-align:left; z-index:2; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="company"></div> <div id="Layer3" style="position:absolute; left:114px; top:150px; width:auto; height:auto; text-align:left; z-index:3; overflow:visible; white-space:nowrap; filter:shadow(color=#F6B5B5, strength=1)" class="slogan"></div> <!-- END LOGO --> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td><img src="images/img_01.jpg" alt="" width="150" height="178" /></td> <td width="99%"></td> <td><img src="images/img_02.jpg" alt="" width="180" height="178" /></td> <td><img src="images/img_03.jpg" alt="" width="190" height="178" /></td> <td><img src="images/img_04.jpg" alt="" width="260" height="178" /></td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top"><img src="images/spacer.gif" alt="" width="7" height="1" /></td> <td align="left" valign="top" width="99%"> <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#3F3434"> <tr> <td align="left" valign="top" height="32" class="bgmenu"><div id="navigator"> <ul id="navigator"> <li><div id="hormenu1L1" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/index.php" id="normal" onmouseover="shutdown();" target="_self" >Home</a></div></li> <li><div id="hormenu1L2" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/faq.php" id="normal" onmouseover="shutdown();" target="_self" >FAQ</a></div></li> <li><div id="hormenu1L3" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Support.php" id="normal" onmouseover="moveLayerX1('L3', 'hormenu1'); LMPopUp('L3', false);" target="_self" >Support <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L6" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/cpanel" id="normal" onmouseover="moveLayerX1('L6', 'hormenu1'); LMPopUp('L6', false);" target="_self" >Login <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> <li><div id="hormenu1L10" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Contact.php" id="normal" onmouseover="shutdown();" target="_self" >Contact</a></div></li> <li><div id="hormenu1L11" onmouseover="clearLMTO();" onmouseout="setLMTO();"><a href="http://whymhost.co.uk/Terms.php" id="normal" onmouseover="moveLayerX1('L11', 'hormenu1'); LMPopUp('L11', false);" target="_self" >Legal <img src="images/down-arrow.gif" border="0" alt=">" /></a></div></li> </ul> </div> <!-- START SUBMENU DATA --> <!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <div id="L3" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL4" class="item"> <a href="http://whymhost.co.uk/Contact.php" onmouseover="LMPopUp('L3', true);" target="_self" > Contact information </a></div> <div id="refL5" class="item"> <a href="http://whymhost.co.uk/cPanel-video-tutorials.php" onmouseover="LMPopUp('L3', true);" target="_self" > cPanel video tutorials </a> </div> </div> </td> </tr> </table> </div> <div id="L6" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL7" class="item"> <a href="http://whymhost.co.uk/cpanel" onmouseover="LMPopUp('L6', true);" target="_self" > Control Panel </a></div> <div id="refL8" class="item"> <a href="http://whymhost.co.uk/mail" onmouseover="LMPopUp('L6', true);" target="_self" > WebMail </a></div> <div id="refL9" class="item"> <a href="http://whymwebhosting.co.uk/billing" onmouseover="LMPopUp('L6', true);" target="_self" > Billing </a></div> </div> </td> </tr> </table> </div> <div id="L11" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td nowrap="nowrap"> <div class="subframe"> <div id="refL12" class="item"> <a href="http://whymhost.co.uk/Terms.php" onmouseover="LMPopUp('L11', true);" target="_self" > Terms </a> </div> <div id="refL13" class="item"> <a href="http://whymhost.co.uk/Privacy-policy.php" onmouseover="LMPopUp('L11', true);" target="_self" > Privacy policy </a> </div> </div> </td> </tr> </table> </div> <script language="JavaScript" type="text/javascript"> <!-- loaded = 1; // --> </script> <!-- end of menu footer - PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/ --> <!-- END SUBMENU DATA --> </td> </tr> <tr> <td class="line"><img src="images/spacer.gif" alt="" width="1" height="11" /></td> </tr> <!-- Begin PATHWAY and ICON --> <tr> <td class="magin"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <!-- Begin PATHWAY --> <td align="left" width="99%"></td> <!-- End PATHWAY --> <!-- Begin ICON --> <td align="right"><table cellpadding="0" cellspacing="0" width="100%"><tr></tr></table></td> <!-- End ICON --> </tr> </table> </td> </tr> <!-- End PATHWAY and ICON --> <tr> <td align="left" valign="top"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" class="magin" id="rv_adjust_width_17"> <?php $conf = array(); $conf['mail_to'] = 'admin@whymwebhosting.co.uk'; // Email mail is sent to (change this from default as it was used for testing purposes $conf['mail_subject'] = 'Form Data Sent'; // The subject of the email you want to see when your form is submitted $conf['mail_from'] = 'no-reply@whymwebhosting.co.uk'; // The email address you want to appear sent the message (leave blank to make no email appear) $conf['turned_on'] = '1'; // If you ever need to shut this form off for any reason change this value to 0 instead of 1 if ($conf['turned_on'] != '1') { print "This program has been turned off. Contact the system administrator for more information."; die; } if (!isset($_SESSION['ver_num_added']) || !isset($_SESSION['ver_num_1']) || !isset($_SESSION['ver_num_2'])) { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } if ($_POST['submit_formed'] == 'Send') { if (trim($_POST['full_name']) == '') { $errors = "<br />Full name left empty."; } if (trim($_POST['email']) == '') { $errors .= "<br />Email left empty."; } if (trim($_POST['comments']) == '') { $errors .= "<br />Comments left empty."; } if ($_POST['ver_num'] != $_SESSION['ver_num_added']) { $errors .= "<br />Verification numbers where not correct when added"; } if (isset($errors)) { $outprint = "<b>The following errors have occurred:</b><br />" . $errors; } else { $content = "The following information was submitted using your contact form at Whym Hosting Full Name: " . $_POST['full_name'] . " Email: " . $_POST['email'] . " Comments: " . $_POST['comments']; if (trim($_POST['telephone']) != '') { $content .= " Telephone: " . $_POST['telephone']; } else { $content .= " Telephone: None supplied in form"; } $content .= " Thankyou"; if (trim($conf['mail_from']) == '') { $headers = 'From: ' . $conf['mail_from']; mail ($conf['mail_to'], $conf['mail_subject'], $content, $headers); } else { mail ($conf['mail_to'], $conf['mail_subject'], $content); } $outprint = "<font color='green'><b>Message sent:</b></font> Your message has been sent."; } } else { $_SESSION['ver_num_1'] = rand('01', '20'); $_SESSION['ver_num_2'] = rand('01', '20'); $_SESSION['ver_num_added'] = $_SESSION['ver_num_1'] + $_SESSION['ver_num_2']; } print " <form method='POST'> <table width='50%' height='1' style='border: 1px solid #1F1212; background: #3F3434;'> <tr><td width='100%' height='1'> <span style='font-size: 18px; color: #ffffff;'>Email: support@whymhost.co.uk <br /> Skype: whymweb <br /> Address: Whym Web Hosting, The Whym, Stapleton, Presteigne, Powys, LD8 2LT</span> </td> </tr> <tr><td width='100%' height='1'> <br /> <table width='100%' height='1' bgcolor='#3F3434'> <tr><td width='100%' colspan='2' align='center'> <font size='2'>All fields marked with </font><font size='2' color='red'>*</font> <font size='2'>are required</font> <br />"; if (isset($outprint)) { print $outprint . '<br /><br />'; } else { print '<br />'; } print " </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Full Name:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='full_name' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Email Address:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><input type='text' name='email' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'>Telephone:</b></font> </td> <td width='75%' align='left'><input type='text' name='telephone' /> </td> </tr> <tr><td width='25%' align='center'><font size='2'><b>Comments:</b></font><font color='red'>*</font> </td> <td width='75%' align='left'><textarea name='comments' rows='10' cols='25'></textarea></td> </tr> </table> </td> </tr> <!-- Begin FOOTER --> <tr> ".' <td align="center" class="margin"></td> </tr> <!-- End FOOTER --> <tr> <td align="center" valign="bottom"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom" class="marginpw"></td> <td width="8"></td> <td align="center" valign="bottom" class="marginpw"></td> </tr> </table> </td> </tr> <tr><td class="bgbottom"><img src="images/spacer.gif" alt="" width="1" height="18" /></td></tr> </table> </td> <td valign="top"><img src="images/spacer.gif" alt="" width="6" height="1" /></td> </tr> </table> </td> </tr> </table> </body> </html> <!-- Publish RVSiteBuilder Version 2.12 -->';
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 12:45 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
The confirmation stuff (anti spam question etc.) at the bottom is gone and so is the submit button!
|
|
|
|
09-28-2007, 12:53 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
There was none to begin with.
You know i have been given TP TWICE in the time i been waiting for this  LOL
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 01:01 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
There was a confirmation thingy ma-bob!
|
|
|
|
09-28-2007, 01:04 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
Well there isnt in the orginal one you posted.
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 01:09 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
Well there was DEFINITELY an anti-spam thing on it - I was looking at it earlier today
|
|
|
|
09-28-2007, 01:13 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
Lol, BUT WHERE coz seriously look at the code there is no input with a type submit
and i cant see nought for anything for the anti-spam...
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 01:14 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
I'm going to look at the old code for this and I'll get back to you!
|
|
|
|
09-28-2007, 01:16 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
Ok and if you find it. (in the code you posted)
Ill give you TP.
XD
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
09-28-2007, 01:40 PM
|
Re: Parsing error - TP for fix
|
Posts: 3,420
|
Well I've got the issue fixed now. Annoyingly, it won't allow me to turn the email address into a clickable link without a parsing error coming back, but I guess we can't have everything
|
|
|
|
09-28-2007, 01:42 PM
|
Re: Parsing error - TP for fix
|
Posts: 6,521
Name: Dan
Location: Swindon
|
So was that code there?
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|
|
|
|
|
« Reply to Parsing error - TP for fix
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|