Genius.com HTML code for newsletter sign up crashing site
Permalink
Trying to put in a block of HTML which allows people to sign up for our newsletter. WE are using Genius.com for blasting and this is the code they gave us. Can anyone take a look at it and figure out why it crashes the pages it is on.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Newsletter Sign-up</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/core.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/main.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/transformer.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/validator.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/messages.js"></script>
<style type="text/css">
.genius_com_w2l_field input[type=text] {
border: 1px # solid grey;
padding: 3px;
}
.genius_com_w2l_field input.error {
border: solid 1px #e1e1e1;
}
.genius_com_w2l_field .errorMsg {
color:#CC3333;
display:none;
font-size:11px;
line-height:16px;
}
.genius_com_w2l_form_label_cell {
vertical-align:top;
}
</style>
</head>
<body>
<script type="text/javascript">
GeniusScript.Configuration = {"validation":[{"fieldname":"std_email","fieldID":"genius_com_w2l_field_std_email","labelID":"genius_com_w2l_label_std_email","validator":"validateEmail","errorMessageSpan":"genius_com_w2l_errorMsg_std_email","errorMessage":"INVALID_EMAIL"}],"booleanFields":[]};
</script> <form action="http://49i.w2l.gurl.im/webToLeadForm/submit?formToken=G08tmqVMt7LQhUmgRzDCNg%3At4g2Bmz2_HQIrQzN7sMTV4o-VGAD1n1pWV61EcjrkcoTw1jRbR03C19-h_DqHtMeD2ODAgWTcwCJEujoTLEKbIhnxVBD51WrrbLxSuVxCLk7dZHeKy41WTPbgDoN0kexQ6FA1PcdmHYxCWS6l8hb4A%3A8Bojn9pWnu2DTTUDGzRW57CZtQsQDatUa_W-GdymXp3uhSpoJBm6GaX8iWvQHEizeIC9MURq0ZfJDL3yK5rIbQ" method="post" class="genius_com_w2l_form" id="genius_com_w2l_form">
<table class="genius_com_w2l_form_table">
<tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_firstName" for="genius_com_w2l_field_std_firstName">First</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_firstName" name="std_firstName" type="text" value="" maxlength="40"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_firstName"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_lastName" for="genius_com_w2l_field_std_lastName">Last</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_lastName" name="std_lastName" type="text" value="" maxlength="80"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_lastName"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_email" for="genius_com_w2l_field_std_email">Email*</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_email" name="std_email" type="text" value="" maxlength="255"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_email"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_companyName" for="genius_com_w2l_field_std_companyName">Company</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_companyName" name="std_companyName" type="text" value="" maxlength="255"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_companyName"></div></div></td></tr></table> <div style="display:none">
<input id="genius_com_w2l_field_std_leadSource" type="hidden" name="std_leadSource" value=""/>
</div> <div>
<input type="submit" value="Submit"/>
</div></form></body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Newsletter Sign-up</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/core.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/main.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/transformer.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/validator.js"></script>
<script type="text/javascript" src="http://49i.static.w2l.gurl.im:8000/v3/messages.js"></script>
<style type="text/css">
.genius_com_w2l_field input[type=text] {
border: 1px # solid grey;
padding: 3px;
}
.genius_com_w2l_field input.error {
border: solid 1px #e1e1e1;
}
.genius_com_w2l_field .errorMsg {
color:#CC3333;
display:none;
font-size:11px;
line-height:16px;
}
.genius_com_w2l_form_label_cell {
vertical-align:top;
}
</style>
</head>
<body>
<script type="text/javascript">
GeniusScript.Configuration = {"validation":[{"fieldname":"std_email","fieldID":"genius_com_w2l_field_std_email","labelID":"genius_com_w2l_label_std_email","validator":"validateEmail","errorMessageSpan":"genius_com_w2l_errorMsg_std_email","errorMessage":"INVALID_EMAIL"}],"booleanFields":[]};
</script> <form action="http://49i.w2l.gurl.im/webToLeadForm/submit?formToken=G08tmqVMt7LQhUmgRzDCNg%3At4g2Bmz2_HQIrQzN7sMTV4o-VGAD1n1pWV61EcjrkcoTw1jRbR03C19-h_DqHtMeD2ODAgWTcwCJEujoTLEKbIhnxVBD51WrrbLxSuVxCLk7dZHeKy41WTPbgDoN0kexQ6FA1PcdmHYxCWS6l8hb4A%3A8Bojn9pWnu2DTTUDGzRW57CZtQsQDatUa_W-GdymXp3uhSpoJBm6GaX8iWvQHEizeIC9MURq0ZfJDL3yK5rIbQ" method="post" class="genius_com_w2l_form" id="genius_com_w2l_form">
<table class="genius_com_w2l_form_table">
<tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_firstName" for="genius_com_w2l_field_std_firstName">First</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_firstName" name="std_firstName" type="text" value="" maxlength="40"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_firstName"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_lastName" for="genius_com_w2l_field_std_lastName">Last</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_lastName" name="std_lastName" type="text" value="" maxlength="80"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_lastName"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_email" for="genius_com_w2l_field_std_email">Email*</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_email" name="std_email" type="text" value="" maxlength="255"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_email"></div></div></td></tr> <tr class="genius_com_w2l_form_row">
<td class="genius_com_w2l_form_label_cell">
<label id="genius_com_w2l_label_std_companyName" for="genius_com_w2l_field_std_companyName">Company</label></td> <td class="genius_com_w2l_form_input_cell">
<div class="genius_com_w2l_field">
<input id="genius_com_w2l_field_std_companyName" name="std_companyName" type="text" value="" maxlength="255"/>
<div class="errorMsg" id="genius_com_w2l_errorMsg_std_companyName"></div></div></td></tr></table> <div style="display:none">
<input id="genius_com_w2l_field_std_leadSource" type="hidden" name="std_leadSource" value=""/>
</div> <div>
<input type="submit" value="Submit"/>
</div></form></body>
</html>
Because the html they gave you is for an entire page (it includes the doctype, html, head, and body tags), whereas the C5 HTML block is inserting just one snippet of html into the theme which already has the doctype, html, head, body, etc. in it. You should be able to go back to them and ask if they have some kind of "embed code" and try pasting that in the HTML block.