##CUSTOM_SUB_MARKETEYE## is a tag that pulls the Boolean result from a database. It returns 1 when it is true and null when it is false. I need to convert that "1" to the word "Yes" and write the word "Yes" to a row in my table.
I realize how much I am asking but would be eternally grateful if someone would help me with this. I appologize, I just don't know where to start. I have been searching the web and begging favors for a day and a half and have gotten absolutely no where. Thanks in advance to anyone who will help! Julie
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript"><!--
- document.getElementById("##CUSTOM_SUB_MARKETEYE##");
- var Marketeye = "##CUSTOM_SUB_MARKETEYE##";
- if (Marketeye == true)
- {
- Marketeye = "Yes";
- }
- else
- {
- Marketeye = "No";
- }
- // --></script>
[HTML]<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body
<p> </p>
<div class="mainDiv" align="center">
<img src="http://www.mycmdirect.com/webimages/directweb/7/email_header.jpg" alt="TTI - Never Short on Solutions" title="TTI, Inc. - Never Short on Solutions" height="144" width="669" />
<table style="height: 392px;" align="center" border="0" cellpadding="1" cellspacing="2" width="669">
<tbody><tr>
<td colspan="2" class="promoLine" height="29" width="706">February 28, 2008 </td>
</tr>
<tr>
<td align="left" valign="top"><p> </p>
<p>Thank you, ##FIRSTNAME##,<b> </b>for your interest in TTI's free eNewsletter service. Our records indicate you subscribed to the following electronic newsletters and/or emails:</p>
<table style="height: 148px;" border="0" width="667">
<tbody><tr>
<td width="177"><b>MarketEye</b></td>
<td bordercolor="#FFFFFF" width="480"> <b>##CUSTOM_SUB_MARKETEYE##</b><%= Marketeyeyn%><b> </b><span style="color: navy; font-family: Arial; font-size: x-small;"><span style="font-size: 10pt; color: navy; font-family: Arial;"></span></span></td>
</tr>
<tr>
<td><b><i>IP&E Matters</i></b></td>
<td bordercolor="#FFFFFF"> <b>##CUSTOM_SUB_IPE_MA TTERS##</b></td>
</tr>
<tr>
<td><b>Technical Seminar Series & QuikCasts</b>
<br /></td>
<td bordercolor="#FFFFFF"> <b>##CUSTOM_SUB_TECHNI CAL_SEMINAR_SERIES##</b></td>
</tr>
<tr>
<td><b>TTI Promotional Emails</b></td>
<td bordercolor="#FFFFFF"> <b>##CUSTOM_SUB_PROMO_ EMAIL##</b></td>
</tr>
</tbody></table>
<p><br />
We appreciate you choosing TTI, Inc. as your preferred information source. You should receive your first email within the next 5-7 business days.<br />
<br />
Regards,<br />
<br />
TTI, Inc.</p>
<br />
</td>
</tr>
<tr>
<td colspan="2" class="submitRow"><div class="style1" align="center">©2008 TTI, Inc. 2441 Northeast Pkwy, Fort Worth, TX 76106</div></td>
</tr>
<tr>
<td colspan="2" class="submitRow"><div class="style1" align="center"></div><br /></td>
</tr>
</tbody></table>
</div>
</body>
</html>[/HTML]