I have been trying to upload an optin box to my site, the sign up form is from iContact, they have two different kind of form, one that is automatic and one that is manual which people can edit, everytime I upload the manual one here is the error that is display on the live page:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/mandela1/public_html/templates/default/boxes/custom.php on line 94
Here is the PHP file with line being underlined starting with var.
<?php
/*
Card Infobox, v 1.0 2002/12/04 by Kevin Park
osCommerce
http://www.oscommerce.com/
Copyright (c) 2000,2001 osCommerce
Released under the GNU General Public License
CRE Loaded , Open Source E-Commerce Solutions
http://www.creloaded.com
Chain Reaction Works, Inc
Portions: Copyright © 2005 - 2006 Chain Reaction Works, Inc.
Last Modified by $Author$
Last Modifed on : $Date$
Latest Revision : $Revision:$
*/
?>
<!-- d Card Info Box //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => '<font color="' . $font_color . '">' . BOX_HEADING_EMAIL . '</font>'
);
new infoBoxHeading($info_box_contents);
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
// 'text' => tep_image(DIR_WS_IMAGES . '/cards/cards.gif') .
//elari chanegd to provide a link to your payment acount
'text' => '<style>
.link,
.signupframe {
color: #EDF505;
font-family: Arial, Helvetica, sans-serif;
}
.link {
text-decoration: none;
}
.signupframe {
border: 1px solid #FFFFFF;
background: #5B5B97;
}
</style>
<form method=post action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup1116" accept-charset="UTF-8" onsubmit="return verifyRequired1116();" >
<input type=hidden name=redirect value="http://www.icontact.com/www/signup/thanks.html" />
<input type=hidden name=errorredirect value="http://www.icontact.com/www/signup/error.html" />
<div id="SignUp">
<table width="260" class="signupframe" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign=top align=right>
<font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Email</font>
</td>
<td align=left>
<input type=text name="fields_email">
</td>
</tr>
<td valign=top align=right>
<font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Name</font>
</td>
<td align=left>
<input type=text name="fields_fname">
</td>
</tr>
<input type=hidden name="listid" value="15786">
<input type=hidden name="specialid:15786" value="2KF6">
<input type=hidden name=clientid value="569119">
<input type=hidden name=formid value="1116">
<input type=hidden name=reallistid value="1">
<input type=hidden name=doubleopt value="0">
<TR>
<TD> </TD>
<TD><font size="1">*</font><font size="2"> = Required Field</FONT></TD>
</TR>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</div>
</form>
<script type="text/javascript">
var icpForm1116 = document.getElementById('icpsignup1116');
if (document.location.protocol === "https:")
icpForm1116.action = "https://app.icontact.com/icp/signup.php";
function verifyRequired1116() {
if (icpForm1116["fields_email"].value == "") {
icpForm1116["fields_email"].focus();
alert("The Email field is required.");
return false;
}
if (icpForm1116["fields_fname"].value == "") {
icpForm1116["fields_fname"].focus();
alert("The Name field is required.");
return false;
}
return true;
}
</script>
<a class="link" href="http://www.icontact.com"><font size="2">Email Marketing You Can Trust</font></a>
'
);
new infoBox($info_box_contents);
if (TEMPLATE_INCLUDE_FOOTER =='true'){
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator('pixel_trans.gif', '100%', '1')
);
new infoboxFooter($info_box_contents, '' );
}
?>
I haven't made any modification to the sign up form code, please does anyone knwo how to fix that?
your help is very appreciated.
|