• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1519
  • Last Modified:

Coldfusion Form force required if checkbox checked

My company currently has a subscription form located here:
http://www.fma-communications.com/Forms/Subscription-Express.cfm

We will be completely rebuilding this form in the future, however for now I need to find a way to force the print or digital radio buttons to be required if a publication is selected.  Pubications are being dumped into the db without any print type.
<!---ACTION PAGE--->
<cfparam name="FORM.NotReceiveName" default="">
<cfparam name="FORM.ReceiveName" default="FAB">
<cfparam name="FORM.Receivepub" default="1">
<cfparam name="FORM.DeliveryHome" default="0">
<cfparam name="FORM.DeliveryBusiness" default="0">
<cfparam name="FORM.PrintType" default="Print">
<cfparam name="FORM.Enewsletter_Fabcom" default="0">
<cfparam name="FORM.Enewsletter_TT" default="0">
<cfparam name="FORM.Enewsletter_WW" default="0">
<cfparam name="FORM.Enewsletter_SNB" default="0">
<cfparam name="FORM.Outsideusa" default="0">
<cfparam name="FORM.ReceiveVendorEmails" default="0">
<cfparam name="FORM.FaxLine" default="">
<cfparam name="FORM.PhoneLine" default="">
<cfparam name="FORM.PrintType" default="">
<cfparam name="FORM.FirstName" default="">
<cfparam name="FORM.LastName" default="">
<cfparam name="FORM.CompanyName" default="">
<cfparam name="FORM.CompanyAddress" default="">
<cfparam name="FORM.CompanyAddress2" default="">
<cfparam name="FORM.CompanyCity" default="">
<cfparam name="FORM.CompanyState" default="">
<cfparam name="FORM.CompanyZip" default="">
<cfparam name="FORM.CompanyCountry" default="">
<cfparam name="FORM.Email" default="">
<cfparam name="FORM.EndProduct" default="">
<cfparam name="FORM.PriorityCode" default="">
<cfparam name="FORM.InterestArea" default="">
<cfparam name="FORM.BuySpecifyApprove" default="">
<cfparam name="FORM.Buy" default="">
<cfparam name="FORM.Employees" default="">
<cfparam name="FORM.CompanyType" default="">
<cfparam name="FORM.BPA_City" default="">
<cfparam name="FORM.JobFunction" default="B">
<cfparam name="FORM.WeldBusiness" default="">
<cfparam name="FORM.PhoneAreaCode" default="">
<cfparam name="FORM.FaxAreaCode" default="">
<cfparam name="FORM.IntPhone" default="">
<cfparam name="FORM.IntFax" default="">
<cfparam name="IndivPhoneNumb" default="">
<cfparam name="IndivPhoneArea" default="">
<cfparam name="IndivFaxArea" default="">
<cfparam name="IndivFaxNumb" default="">
<cfparam name="FaxArea" default="">
<cfparam name="FaxNumb" default="">
<cfparam name="PhoneArea" default="">
<cfparam name="PhoneNumb" default="">
<cfparam name="FORM.Referer" default="">
 
 
<cfif FORM.Enewsletter_Fabcom EQ 1>
<cfset Enewsletter_Fabcom = "Y">
<cfelse>
<cfset Enewsletter_Fabcom = "N">
</cfif>
<cfif FORM.Enewsletter_TT EQ 1>
<cfset Enewsletter_TT = "Y">
<cfelse>
<cfset Enewsletter_TT = "N">
</cfif>
<cfif FORM.Enewsletter_WW EQ 1>
<cfset Enewsletter_WW = "Y">
<cfelse>
<cfset Enewsletter_WW = "N">
</cfif>
<cfif FORM.Enewsletter_SNB EQ 1>
<cfset Enewsletter_SNB = "Y">
<cfelse>
<cfset Enewsletter_SNB = "N">
</cfif>
<cfif FORM.ReceiveVendorEmails EQ 1>
<cfset ReceiveVendorEmails = "Y">
<cfelse>
<cfset ReceiveVendorEmails = "N">
</cfif>
 
 
<cfif FORM.PhoneLine EQ "Direct">
<!--- PHONE DIRECT is TRUE --->
<cfif FORM.PhoneAreaCode NEQ "">
<!--- Phone area code present --->
	<cfset IndivPhoneArea = FORM.PhoneAreaCode>
	<cfset IndivPhoneNumb = FORM.Phoneprefix&'-'&FORM.PhoneSuffix>
	<cfset PhoneArea = " ">
	<cfset PhoneNumb = " ">
<cfelse>
<!--- Phone area code not present --->
	<cfset IndivPhoneArea = " ">
	<cfif FORM.IntPhone NEQ "">
		<cfset IndivPhoneNumb = FORM.IntPhone>
	<cfelse>
		<cfset IndivPhoneNumb = " ">
	</cfif>
	<cfset PhoneArea = " ">
	<cfset PhoneNumb = " ">
</cfif>	
 
<cfelseif FORM.PhoneLine EQ "Company">
<!--- PHONE COMPANY is TRUE --->
<cfif FORM.PhoneAreaCode NEQ "">
<!--- Phone area code present --->
	<cfset IndivPhoneArea = " ">
	<cfset IndivPhoneNumb = " ">
	<cfset PhoneArea = FORM.PhoneAreaCode>
	<cfset PhoneNumb = FORM.Phoneprefix&'-'&FORM.PhoneSuffix>
<cfelse>
<!--- Phone area code not present --->
	<cfset IndivPhoneArea = " ">
	<cfset IndivPhoneNumb = " ">
	<cfset PhoneArea = " ">
	<cfif FORM.IntPhone NEQ "">
		<cfset PhoneNumb = FORM.IntPhone>
	<cfelse>
		<cfset PhoneNumb = " ">
	</cfif>
</cfif>	
</cfif>
 
<cfif FORM.FaxLine EQ "Direct">
<!--- Fax DIRECT is TRUE --->
<cfif FORM.FaxAreaCode NEQ "">
<!--- Fax area code present --->
	<cfset IndivFaxArea = FORM.FaxAreaCode>
	<cfset IndivFaxNumb = FORM.Faxprefix&'-'&FORM.FaxSuffix>
	<cfset FaxArea = " ">
	<cfset FaxNumb = " ">
<cfelse>
<!--- Fax area code not present --->
	<cfset IndivFaxArea = " ">
	<cfif FORM.IntFax NEQ "">
		<cfset IndivFaxNumb = FORM.IntFax>
	<cfelse>
		<cfset IndivFaxNumb = " ">
	</cfif>
	<cfset FaxArea = " ">
	<cfset FaxNumb = " ">
</cfif>	
 
<cfelseif FORM.FaxLine EQ "Company">
<!--- Fax COMPANY is TRUE --->
<cfif FORM.FaxAreaCode NEQ "">
<!--- Fax area code present --->
	<cfset IndivFaxArea = " ">
	<cfset IndivFaxNumb = " ">
	<cfset FaxArea = FORM.FaxAreaCode>
	<cfset FaxNumb = FORM.Faxprefix&'-'&FORM.FaxSuffix>
<cfelse>
<!--- Fax area code not present --->
	<cfset IndivFaxArea = " ">
	<cfset IndivFaxNumb = " ">
	<cfset FaxArea = " ">
	<cfif FORM.IntFax NEQ "">
		<cfset FaxNumb = FORM.IntFax>
	<cfelse>
		<cfset FaxNumb = " ">
	</cfif>
</cfif>	
</cfif>
<cftransaction>
 
 
 
<cfloop list="#SESSION.Publication#" index="i">
<cfquery datasource="FCData" name="INSERT_Subscription">
INSERT INTO tSubscriptions(
SubscriptionDate,
ReceivePub,
Pub,
PrintType,
FirstName,
LastName,
CompanyName,
CompanyAddress,
CompanyAddress2,
CompanyCity,
CompanyState,
CompanyZip,
CompanyCountry,
DeliveryHome,
DeliveryBusiness,
PhoneLine,
FaxLine,
Email,
EndProduct,
PriorityCode,
InterestArea,
BuySpecifyApprove,
JobFunction,
WeldBusiness,
Employees,
CompanyType,
Enewsletter_Fabcom,
Enewsletter_TT,
Enewsletter_WW,
Enewsletter_SNB,
ReceiveVendorEmails,
BPA_City,
IndivFaxArea,
IndivFaxNumb,
FaxArea,
FaxNumb,
IndivPhoneArea,
IndivPhoneNumb,
PhoneArea,
Referer,
<cfif IsDefined('SESSION.NameID')>
NameID,
</cfif>
PhoneNumb
)
VALUES (
#CreateODBCDate(Now())#,
#FORM.ReceivePub#,
'#i#',
'#FORM.PrintType#',
'#FORM.FirstName#',
'#FORM.LastName#',
'#FORM.CompanyName#',
'#FORM.CompanyAddress#',
'#FORM.CompanyAddress2#',
'#FORM.CompanyCity#',
'#FORM.CompanyState#',
'#FORM.CompanyZip#',
'#FORM.CompanyCountry#',
#FORM.DeliveryHome#,
#FORM.DeliveryBusiness#,
'#FORM.PhoneLine#',
'#FORM.FaxLine#',
'#FORM.Email#',
'#FORM.EndProduct#',
'#FORM.PriorityCode#',
'#ListSort(FORM.InterestArea,"Numeric", "ASC")#',
'#FORM.BuySpecifyApprove#',
'#FORM.JobFunction#',
'#FORM.WeldBusiness#',
'#FORM.Employees#',
'#FORM.CompanyType#',
'#Enewsletter_Fabcom#',
'#Enewsletter_TT#',
'#Enewsletter_WW#',
'#Enewsletter_SNB#',
'#ReceiveVendorEmails#',
'#FORM.BPA_City#',
'#IndivFaxArea#',
'#IndivFaxNumb#',
'#FaxArea#',
'#FaxNumb#',
'#IndivPhoneArea#',
'#IndivPhoneNumb#',
'#PhoneArea#',
'#FORM.Referer#',
<cfif IsDefined('SESSION.NameID')>
#SESSION.NameID#,
</cfif>
'#PhoneNumb#'
)
</cfquery>
</cfloop>
 
 
 
</cftransaction>
<cfif FORM.Email CONTAINS "AOL.COM" OR FORM.Email CONTAINS "hotmail.com" OR FORM.Email CONTAINS "msn.com">
 
 
<cfmail to="#FORM.Email#"
		cc="newsletters@thefabricator.com"
		from="info@thefabricator.com"
		subject="AOL, MSN and Hotmail Subscribers"
		type="html"
		>
<table cellpadding="3" cellspacing="0" width="550" border="0">
<tr>
<td>Dear #FORM.FirstName#: <br/><br/>
 
<p>Please be sure to whitelist <b>newsletters@thefabricator.com</b> to insure continued delivery.</p>
 
<p>Thank you,  <br/>
FMA Communications, Inc.</p>
</td>
</tr>
</table>
</cfmail>		
</cfif>
<cf_FMAC-Header>
<cf_SecondNav page="Subscribers">
<!-- InstanceEndEditable -->
<div id="content">
<!-- InstanceBeginEditable name="content" -->
<h1>Thank you!</h1>
 
<ul>
  <li><a href="http://www.fma-communications.com/Subscriptions.cfm"> Subscribe </a> to another FMA Communications, Inc. publication. </li>
  <li>Invite a colleague to subscribe --<a href="http://www.fma-communications.com/SendtoaFriend_FMAC/Send_to_a_friend.cfm?PUB=SJ">  click here </a> to email the subscription page. </li>
</ul>
<h2> Search our:</h2>
<ul>
  <li>  <a href="http://www.thefabricator.com/Article_Archive/Article_Archive.cfm">Article  Archive</a> </li>
  <li><a href="http://www.ffid.net">Industry Supplier Directory </a></li>
  <li><a href="http://www.thefabricator.com/classified"> Classifieds </a></li>
  <li><a href="https://www.fmanet.org/FMAstore/index.cfm"> FMA Book Store </a></li>
  <li><a href="http://www.thefabricator.com/Buyers-Guides.cfm"> Searchable  Buyers' Guides </a></li>
  <li><a href="http://www.fmanet.org/JobBoard/Main.cfm"> Job Board </a></li>
  <li><a href="http://www.fmafabtech.com"> FABTECH&reg; International </a></li>
  <li><a href="http://www.fmanet.org/Conferences/Conference-Calendar.cfm"> Conference  Schedules </a></li>
  <li><a href="http://www.fmanet.org/Membership/FMA-Membership.cfm"> FMA </a> &amp; <a href="http://www.fmanet.org/Membership/FMA-Membership.cfm"> TPA  </a> Membership Information</li>
  <li><a href="http://www.fma-communications.com"> Advertising opportunities </a> <br />
  </li>
</ul>
</ul>            
            <cfif IsDefined("SESSION.ArticleID")>
			<table width="550" align="center">
			  <tr>
			    <td width="50"></td>
			    <td align="center">
				<table width="450" border="2"  cellpadding="0" cellspacing= "0" bordercolor="#AABBD8" align="center">
                    <tr>
                      <td align="center"><br/><cfoutput><span class="homepghead">You may now view the Subscriber Only Content.</span> <br/><cfset SESSION.LoggedGood = 1>
                             
              Click <a href="http://www.thefabricator.com/Articles/Subscriber_Content.cfm?ID=#SESSION.ArticleID#&New=Yes">here</a> to read the article.</cfoutput> <br/></td>
                    </tr>
			        </table></td>
			    <td width="50"></td>
		      </tr>
		    </table></cfif>
			<p><b>Tell us your ideas<br/>
            </b>Our staff is always eager to hear <a href="mailto:vickib@thefabricator.com?Subject=thefabricator.com%20article%20proposalv">article proposals</a> and other <a href="mailto:webmaster@thefabricator.com?Subject=thefabricator.com%20site%20suggestions">site suggestions</a> from industry professionals. If your company has made new strides in your fabrication process, we want to hear the keys to your success. We may feature your company in an upcoming issue.</p>
            <p><b>thefabricator.com</b><br/>
              Vicki Bell, Web Content Manager<br/>
            833 Featherstone Rd.<br/> 
            Rockford, IL 61107<br/> 
            fax: 815-381-1370<br/> 
            e-mail:<a href="mailto:vickib@thefabricator.com">vickib@thefabricator.com</a></p>          </td>
        </tr>
      </table>
 
 
<!-- InstanceEndEditable --></div>
 
<!-- InstanceBeginEditable name="footer" -->
 
 
<cfif  FORM.PrintType EQ "Digital" AND SESSION.Publication EQ "FAB" OR SESSION.Publication EQ "PWT" >
	<cfscript>
		SESSION.ReceiveName = SESSION.Publication; 
        SESSION.Email = FORM.Email;
        SESSION.firstname = FORM.firstname; 
        SESSION.lastname = FORM.lastname;
    </cfscript>
    <cflocation addtoken="no" url="Digital-Thankyou.cfm">
</cfif>
 
 
 
 
<!---FORM--->
<cfif IsDefined('FORM.FieldNames')>
<cfloop list="#FORM.FieldNames#" index="i">
<cfscript>
FORM[i] = replace(FORM[i],'<','&lt;','ALL');
FORM[i] = replace(FORM[i],'<','&gt;','ALL');
FORM[i] = replace(FORM[i],'"','&quot;','ALL');
FORM[i] = replace(FORM[i],'''',' ','ALL');
</cfscript>
</cfloop>
</cfif>
 
<cfif IsDefined('URL.PriorityCode')>
	<cfset SESSION.PriorityCode = URL.PriorityCode>
</cfif>
<cfif IsDefined('URL.Publication')>
<cfset SESSION.Publication = URL.Publication>
<!---<cfelse>
<cfif Not IsDefined('SESSION.Publication')>
<cfset SESSION.Publication = "FAB">--->
</cfif>
 
<cfif Not IsDefined('SESSION.HTTP_REFERER')>
	<cfset SESSION.HTTP_REFERER = CGI.HTTP_REFERER>
</cfif>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/FMAC-CSS.dwt.cfm" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Laurie Harshbarger" />
<meta name="identifier" content="http://www.fma-communications.com" />
<meta name="organization-email" content="info@thefabricator.com" />
<meta name="copyright" content="2007 fma-communications.com" />
<meta name="coverage" content="Global" />
<meta name="robots" content="Index, Follow" />
<meta name="revisit" content="1 day" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<link rel="stylesheet" href="http://www.fma-communications.com/Templates/FMAC-styles.css" type="text/css" />
<link rel="shortcut icon" href="http://www.fma-communications.com/favicon.ico" />
<!-- InstanceBeginEditable name="head" -->
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=1,resizable=1,width=450,height=350');");
}
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}
</script>
 
<cfif IsDefined('FORM.NameID')>
   <cfif Val(FORM.NameID) EQ 0 >
				  <cfmail 
 					 to = "brendaw@thefabricator.com" 
                    from = "webmaster@thefabricator.com"
                      subject = "Subscription Express Error"
					  type = "html">
                      <cfdump var="#FORM#">
                      </cfmail>
                     <cfset invalid = 1>
                 <CFELSE>
                      
<cfquery datasource="FCData" name="getSubscriber">
SELECT     Name_ID, First_Name, Surname, Employer, Company_Addr1, Company_Addr2, Company_City, Company_State, Company_Zip, Company_Country_Desc, Email
FROM         tSubscribers
WHERE     (Name_ID = <cfqueryparam 
                        value="#FORM.NameID#" 
                        cfsqltype="CF_SQL_VARCHAR" 
                        maxlength="8">)
</cfquery>
<cfset SESSION.NameID = val(getSubscriber.Name_ID)>
</cfif>
     </cfif>
                      
<cfquery datasource="FCData" name="GetCountry">
SELECT Code, CountryName
FROM tCountries
ORDER BY ID
</cfquery>
 
<meta name="description" content="Subscriptions are free to qualified persons in North America involved in metal forming and fabricating, and subscriptions outside the U.S. are available for a fee.">
<meta name="keywords" content="Tube and Pipe Journal,Stamping Journal,Practical Welding Today,The Fabricator,welding,company,cutting,address,administrative,fabricator,line,mfg,newsletter,product,pipe,zip,tube pipe,TPJ,SJ">
 
<title>Express Subscription and Renewal Form</title>
 
<style type="text/css">
<!--
.style1 {
	color: #990000;
	font-weight: bold;
}
 
.style3 {font-size: 11px;
color: #990000
 
}
-->
</style>
<!-- InstanceEndEditable -->
<meta name="verify-v1" content="fLeSUsrtcXD2chNcWx75Am/KlO5M6wAHzK8mY78+lUo=" />
</head>
<body>
 
<div id="wrapper">
<!-- InstanceBeginEditable name="header" -->
 
<!--- types: HOME, TPJ, SJ --->
<cf_FMAC-Header>
<cf_SecondNav page="Subscribers">
<!-- InstanceEndEditable -->
<div id="content">
<!-- InstanceBeginEditable name="content" -->
 
<h1>Express Subscription and Renewal Form</h1>
 
<table width="100%"  border="0" cellpadding="10" cellspacing="0" align="center">
  <tr>
    <td align="left" valign="top"><cfif Not IsDefined('getSubscriber.Name_ID')>
          <form action="Subscription-Express.cfm" method="post">
            <table width="570" cellpadding="3" cellspacing="1" style="border-color:#d9d9d9; border:solid 1px;" align="center">
              <tr>
                <td colspan="2" valign="top">Are you renewing a subscription? Look for your Subscriber ID on your magazine's mailing label.<br />
                    <br />
                  <div align="right"><b>Subscriber ID:</b>&nbsp;&nbsp;
               
                    
                      <input name="NameID" size="7" type="text" maxlength="7"/>
                                     <p class="style3">**Do not enter the # sign or any Alpha characters.</p>
                    <input type="submit" name="submit" value="Get My Information" />
                  </div></td>
                <td valign="top"><img src="http://www.fma-communications.com/SiteImages/nameid.gif" /><br />
                   <span class="style1">**If you do not have your ID, skip this box and continue with the form.</span></td>
              </tr>
          
             </table>
          </form>
          <cfif isDefined ('invalid')>
 
 <blockquote  style="border:#990000 2px solid; text-align:center; font-weight:bold; color:#990000">**You have entered an invalid Subscriber ID,<br /> Subscriber ID's contain <u> numeric characters only.</u></blockquote>
 </cfif>
		  <br />
        </cfif>
        <cfform method="post" action="Subscription-Page-Action-Express.cfm" name="form1">
 
          <table width="550" align="center">
            <tr>
              <td>&nbsp;&nbsp;</td>
              <td bgcolor="#dfedfe">&nbsp;&nbsp;&nbsp;</td>
              <td>= indicates required field</td>
            </tr>
          </table>
<table cellpadding="2" width="550" align="center">
<tr>
<td><img src="http://www.thefabricator.com/SiteImages/PubCovers/Fabcover100.jpg" border="0" height="134" width="100" alt="FABRICATOR Media Kit"/></td>
<td valign="middle"><input type="checkbox" name="ReceiveName"  value="FAB"  style="background-color:#DFEDFE">
  &nbsp;Yes, I would like to receive/continue to receive <i>The Fabricator&reg;</i>, covering all aspects of metal forming and fabricating </p>
 
 <p>
<cfinput type="radio" name="PrintTypeFAB" value="Print" /> Print Version &nbsp;
<cfinput type="radio" name="PrintTypeFAB" value="Digital" /> Digital Version <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="small"><a href="http://www.thefabricator-digital.com" target="_blank">View Sample Issue</a>  | <a href="http://www.fma-communications.com/Digital-Fabricator-FAQ.cfm" target="_blank">Digital FAQ's</a></span>
 </p> 
 
      <input type="checkbox" name="NotReceiveName" value="FAB"  style="background-color:#DFEDFE">
    No </p></td>
</tr>
<tr>
<td><img src="http://www.thefabricator.com/SiteImages/PubCovers/TPJcover100.jpg" border="0" height="134" width="100" alt="TPJ Tube And Pipe Journal Media Kit"/></td>
<td valign="middle"><input type="checkbox" name="ReceiveName"  value="TPJ"  style="background-color:#DFEDFE">
&nbsp;Yes, I would like to receive/continue to receive <i>The Tube and Pipe Journal&reg;</i>, North America's only publication devoted exclusively to the tube and pipe industry. <br/>
<br/><input type="checkbox" name="NotReceiveName" value="TPJ"  style="background-color:#DFEDFE"> No
</td>
</tr>
 
<tr>
<td><img src="http://www.thefabricator.com/SiteImages/PubCovers/SJcover100.jpg" border="0" height="134" width="100" alt="STAMPING Journal Media Kit"/></td>
<td valign="middle"><input type="checkbox" name="ReceiveName"  value="SJ"  style="background-color:#DFEDFE">
&nbsp;Yes, I would like to receive/continue to receive <i>STAMPING Journal&reg;</i>, the only industrial publication dedicated soley to the metal stamping market. <br/>
 <p>
<cfinput type="radio" name="PrintTypeSTP" value="Print" /> Print Version &nbsp;
<cfinput type="radio" name="PrintTypeSTP" value="Digital" /> Digital Version <br />
 </p> 
<br/>
<input type="checkbox" name="NotReceiveName" value="SJ"  style="background-color:#DFEDFE"> No
</td>
</tr>
 
<tr>
<td><img src="http://www.thefabricator.com/SiteImages/PubCovers/PWTcover100.jpg" border="0" height="134" width="100" alt="Practical Welding Today Media Kit"/></td>
<td valign="middle"><input type="checkbox" name="ReceiveName"  value="PWT"  style="background-color:#DFEDFE">
&nbsp;Yes, I would like to receive/continue to receive <i>Practical Welding Today&reg;</i>, providing hands-on; down to earth information for welders. <br/>
 
 <p>
<cfinput type="radio" name="PrintTypePWT" value="Print" /> Print Version &nbsp;
<cfinput type="radio" name="PrintTypePWT" value="Digital" /> Digital Version <br />
 </p> 
 
<br/><input type="checkbox" name="NotReceiveName" value="PWT"  style="background-color:#DFEDFE"> No
</td>
</tr>
 
 
</table>
          <table cellpadding="2" width="573" align="center">
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>First name:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.First_Name')>
                  <cfinput name="firstname" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.First_Name#"
		 required="yes"
		 message="FIRST NAME is a required field."
		 >
                  <cfelse>
                  <cfinput name="firstname" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="FIRST NAME is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>Last name:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.SurName')>
                  <cfinput name="Lastname" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.SurName#"
		 required="yes"
		 message="LAST NAME is a required field."
		 >
                  <cfelse>
                  <cfinput name="Lastname" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="LAST NAME is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>Company name:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Employer')>
                  <cfinput name="CompanyName" 
		 type="text" 
		 size="40" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Employer#"
		 required="yes"
		 message="LAST NAME is a required field."
		 >
                  <cfelse>
                  <cfinput name="CompanyName" 
		 type="text" 
		 size="40" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="COMPANY NAME is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b> Address:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Company_Addr1')>
                  <cfinput name="CompanyAddress" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Company_Addr1#"
		 required="yes"
		 message="COMPANY ADDRESS is a required field."
		 >
                  <cfelse>
                  <cfinput name="CompanyAddress" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="COMPANY ADDRESS is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right">&nbsp;</td>
              <td width="356"><cfif IsDefined('getSubscriber.Company_Addr2')>
                  <cfinput name="CompanyAddress2" 
		 type="text" 
		 size="30" 
		 value="#getSubscriber.Company_Addr2#"
		 required="no"
		 >
                  <cfelse>
                  <cfinput name="CompanyAddress2" 
		 type="text" 
		 size="30" 
		 required="no"
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>City:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Company_City')>
                  <cfinput name="CompanyCity" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Company_City#"
		 required="yes"
		 message="CITY is a required field."
		 >
                  <cfelse>
                  <cfinput name="CompanyCity" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="CITY is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>State/Province:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Company_State')>
                  <cfinput name="CompanyState" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Company_State#"
		 required="yes"
		 message="STATE/PROVINCE is a required field."
		 >
                  <cfelse>
                  <cfinput name="CompanyState" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="STATE/PROVINCE is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>Zip/Postal Code:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Company_Zip')>
                  <cfinput name="CompanyZip" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Company_Zip#"
		 required="yes"
		 message="ZIP/POSTAL CODE is a required field."
		 >
                  <cfelse>
                  <cfinput name="CompanyZip" 
		 type="text" 
		 size="30" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="ZIP/POSTAL CODE is a required field."
		 >
              </cfif></td>
            </tr>
            <tr>
              <td width="201" align="right"><b>Country:</b></td>
              <td width="356"><cfselect name="CompanyCountry" message="COMPANY is a required field." size="1" query="getCountry" value="Code" display="CountryName" selected="USA" required="yes" style="background-color:##DFEDFE;"> </cfselect>              </td>
            </tr>
            <tr>
              <td colspan="3"><span class="style1">This Address is my: 
                  &nbsp;  &nbsp; 
                  <input type="checkbox" name="DeliveryBusiness" value="1" />
                  Business              
&nbsp;  &nbsp;
 <input type="checkbox" name="DeliveryHome" value="1" /> 
Home</span></td>
            </tr>
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="201" align="right" valign="top"><b>Phone:</b></td>
              <td width="356" valign="top"><input type="text" name="PhoneAreaCode" size="3" onkeyup="autotab(this, document.form1.PhonePrefix)" maxlength="3" />
                -
                <input type="text" name="PhonePrefix" size="3" onkeyup="autotab(this, document.form1.PhoneSuffix)" maxlength="3" />
                -
                <input type="text" name="PhoneSuffix" size="4" maxlength="4" /></td>
            </tr>
            <tr>
              <td width="201" align="right" valign="top">&nbsp;</td>
              <td width="356" valign="top"><cfinput name="IntPhone" 
									  type="text" 
									  value="" 
									  size="25">
                &nbsp; <span class="menu"><i>(if outside U.S. and Canada)</i></span> <br />
                The phone number listed above is a:<br />
                <input type="radio" name="phoneline" value="Direct" checked="checked" />
                Direct line &nbsp;&nbsp;
                <input type="radio" name="phoneline" value="Company" />
                Main company line</td>
            </tr>
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="201" align="right" valign="top"><b>Fax:</b></td>
              <td width="356" valign="top"><input type="text" name="FaxAreaCode" size="3" onkeyup="autotab(this, document.form1.FaxPrefix)" maxlength="3" />
                -
                <input type="text" name="FaxPrefix" size="3" onkeyup="autotab(this, document.form1.FaxSuffix)" maxlength="3" />
                -
                <input type="text" name="FaxSuffix" size="4" maxlength="4" /></td>
            </tr>
            <tr>
              <td width="201" align="right" valign="top">&nbsp;</td>
              <td width="356" valign="top"><cfinput name="IntFax" 
									  type="text" 
									  value="" 
									  size="25">
                &nbsp; <span class="menu"><i>(if outside U.S. and Canada)</i></span> <br />
                The fax number listed above is a:<br />
                <input type="radio" name="faxline" value="Direct" checked="checked" />
                Direct line &nbsp;&nbsp;
                <input type="radio" name="faxline" value="Company" />
                Main company line</td>
            </tr>
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="201" align="right" valign="top"><b>E-mail address:</b></td>
              <td width="356"><cfif IsDefined('getSubscriber.Email')>
                  <cfinput name="Email" 
		 type="text" 
		 size="50" 
		 style="background-color:##DFEDFE;" 
		 value="#getSubscriber.Email#"
		 required="yes"
		 message="E-MAIL ADDRESS is a required field."
		 >
                  <cfelse>
                  <cfinput name="Email" 
		 type="text" 
		 size="50" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="E-MAIL ADDRESS is a required field."
		 >
              </cfif></td>
            </tr>
                               <tr>
              <td colspan="2"><b>Note:</b> Please be sure to whitelist <a href="mailto:newsletters@thefabricator.com">newsletters@thefabricator.com</a> to   insure  delivery.</td>
            </tr>
          </table>
          <table cellpadding="2" width="557" align="center">
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="200" align="right" valign="top"><b>Primary end product<br />
                (please be specific):</b></td>
              <td width="330"><cfinput name="Endproduct" 
		 type="text" 
		 size="60" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="End Product is a required field."
		 ></td>
            </tr>
            <tr>
              <td colspan="2"><hr /></td>
            </tr>
            <tr>
              <td width="200" align="right" valign="top"><b>Enter your priority code here:</b><br />
                  <span class="footer">If you do not have a code, please leave this field blank.</span><br />
                <br /></td>
              <td width="330" valign="top">
               <input name="PriorityCode" type="text" size="7" value="<cfif IsDefined('SESSION.PriorityCode')><cfoutput>#SESSION.PriorityCode#</cfoutput></cfif>" />
                  <br />
                <br /></td>
            </tr>
          </table>
          <input name="BuySpecifyApprove" type="hidden" value="" />
		  <!---<table cellpadding="2" width="550" align="center">
		              <tr>
              <td colspan="2"><b>I buy, specify or approce the purchase of the following technologies: (check all that apply)</b><br />
                  <hr /></td>
            </tr>
		  <cfif SESSION.Publication EQ "PWT">
<tr>
              <td class="body">
<input name="BuySpecifyApprove" type="checkbox"  value="1" />Arc Welding (Includes GMAW (MIG), GTAW (TIG), SMAW, FCAW, SAW)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="2" />Brazing/Soldering<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="3" />Consumables<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="4" />Cutting (Plasma and Oxyfuel)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="5" />Weld Prep (Grinding, sanding, beveling)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="6" />Welding Inspection<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="7" />Repair and Field Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="8" />Resistance Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="9" />Laser Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="10" />Robotic Welding<br/>
</td>
<td>&nbsp;</td>
            </tr>
<cfelseif SESSION.Publication EQ "SJ">
<tr>
              <td class="body" colspan="2">
<input name="BuySpecifyApprove" type="checkbox"  value="1" />Coil cars and cradles<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="2" />Coil cut-to-length machines<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="3" />Coil levelers, slitters and straighteners<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="4" />Uncoilers and recoilers<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="5" />Die handling<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="6" />Press feeds<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="7" />Presses (Includes, high-speed, hydraulic and mechanical)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="8" />Transfer presses<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="9" />Tool &amp; Die<br/>
</td>
            </tr>
<cfelseif SESSION.Publication EQ "TPJ">
<tr>
              <td class="body" colspan="2">
<input name="BuySpecifyApprove" type="checkbox"  value="1" />Arc Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="2" />Cutting and Weld Prep<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="3" />Materials Handling<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="4" />Sawing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="5" />Shearing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="6" />Testing &amp; Measuring<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="7" />Tool &amp; Die<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="8" />Tube &amp; Pipe Mills<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="9" />Bending Machines<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="10" />End Forming Machines<br/>
</td>
            </tr>
<cfelse>
<tr>
              <td class="body" valign="top">
<input name="BuySpecifyApprove" type="checkbox"  value="1" />Bending (Includes press brakes and folding machines)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="2" />Assembly<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="3" />Metals/materials<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="4" />Arc Welding (Includes GMAW (MIG), GTAW (TIG), SMAW, FCAW, SAW)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="5" />Punching<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="6" />Sawing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="7" />Shearing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="8" />Aluminum Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="9" />Materials Handling<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="10" />Cutting (Includes Plasma &amp; Oxyfuel)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="11" />Waterjet Cutting<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="12" />Laser Cutting<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="13" />Weld Prep (Grinding, sanding, beveling)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="14" />Finishing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="15" />Tool &amp; Die<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="16" />Safety<br/>
</td> <td class="body" valign="top">
<input name="BuySpecifyApprove" type="checkbox"  value="17" />Shop management<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="18" />CAD/CAM Software<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="19" />Welding Inspection<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="20" />Testing &amp; Measuring<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="21" />Roll Forming<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="22" />Repair &amp; Field Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="23" />Metallurgy<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="24" />Presses (Includes, high-speed, hydraulic and mechanical)<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="25" />Resistance Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="26" />Robotics<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="27" />Consumables<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="28" />Press Feeding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="29" />Laser Welding<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="30" />Tube/Pipe Production<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="31" />Tube/Pipe Fabrication<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="32" />Coil Processing<br/>
<input name="BuySpecifyApprove" type="checkbox"  value="33" />Hydroforming<br/>
</td>
            </tr>
</cfif>
	</table>--->	  
          <table cellpadding="2" width="550" align="center">
            <tr>
              <td colspan="2"><b>What is your principal job function?</b><br />
                  <hr /></td>
            </tr>
            <tr>
              <td><cfinput name="JobFunction" value="B" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Corporate Executive<br />
                <cfinput name="JobFunction" value="C" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Mfg. Production Mgmnt.<br />
                <cfinput name="JobFunction" value="D" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Mfg. Production Dept.<br />
                <cfinput name="JobFunction" value="E" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Mfg. Engineering Mgmnt.<br />
                <cfinput name="JobFunction" value="F" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Mfg. Engineering Dept.<br />
                <cfinput name="JobFunction" value="H" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Product R&amp;D Mgmnt.<br />
                <cfinput name="JobFunction" value="I" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Product R&amp;D Dept.<br />
                <cfinput name="JobFunction" value="L" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Purchasing<br />
                <br /></td>
              <td>
                 <cfinput name="JobFunction" value="R" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Factory Automation Mgmt.<br />
                           <cfinput name="JobFunction" value="S" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Factory Automation Engineers<br />
                <cfinput name="JobFunction" value="P" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Quality Assurance Mgmnt.<br />
                <cfinput name="JobFunction" value="Q" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Quality Assurance Dept.<br />
                <cfinput name="JobFunction" value="T" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Welding Mgmnt.<br />
                <cfinput name="JobFunction" value="U" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Welding Dept.<br />
                <cfinput name="JobFunction" value="G" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Other Operations/Production<br />
                <cfinput name="JobFunction" value="N" style="background-color:##DFEDFE;" type="radio" required="yes" message="Job Function is a required field">
                Other Qualified<br />
                <br />
              </td>
            </tr>
            <input name="InterestArea" type="hidden" value="" />
           <!--- <tr>
              <td colspan="2"><b>My interest areas are (choose all that apply)?</b><br />
                  <hr /></td>
            </tr>
            <tr>
              <td class="body"><input name="InterestArea" type="checkbox"  value="26" />
                Aluminum Welding<br />
                <input name="InterestArea" type="checkbox"  value="27" />
                Arc Welding<br />
                <input name="InterestArea" type="checkbox"  value="28" />
                Art and Sculpture<br />
                <input name="InterestArea" type="checkbox"  value="1" />
                Assembly<br />
                <input name="InterestArea" type="checkbox"  value="2" />
                Bending<br />
                <input name="InterestArea" type="checkbox"  value="3" />
                CAD/CAM Software<br />
                <input name="InterestArea" type="checkbox"  value="19" />
                Coil Processing<br />
                <input name="InterestArea" type="checkbox"  value="29" />
                Consumables<br />
                <input name="InterestArea" type="checkbox"  value="30" />
                Cutting and Weld Prep<br />
                <input name="InterestArea" type="checkbox"  value="10" />
                Finishing<br />
                <input name="InterestArea" type="checkbox"  value="11" />
                Folding<br />
                <input name="InterestArea" type="checkbox"  value="12" />
                Hydroforming<br />
                <input name="InterestArea" type="checkbox"  value="4" />
                Laser Cutting<br />
                <input name="InterestArea" type="checkbox"  value="31" />
                Laser Welding<br />
                <input name="InterestArea" type="checkbox"  value="13" />
                Materials Handling<br />
                <input name="InterestArea" type="checkbox"  value="32" />
                Metallurgy<br />
                <input name="InterestArea" type="checkbox"  value="14" />
                Metals/Materials<br />
                <input name="InterestArea" type="checkbox"  value="5" />
                Oxyfuel Cutting<br />
                <br />
              </td>
              <td class="body"><input name="InterestArea" type="checkbox"  value="6" />
                Plasma Cutting<br />
                <input name="InterestArea" type="checkbox"  value="21" />
                Press Feeding<br />
                <input name="InterestArea" type="checkbox"  value="20" />
                Press Technology<br />
                <input name="InterestArea" type="checkbox"  value="15" />
                Punching<br />
                <input name="InterestArea" type="checkbox"  value="33" />
                Repair and Field Welding<br />
                <input name="InterestArea" type="checkbox"  value="34" />
                Resistance Welding<br />
                <input name="InterestArea" type="checkbox"  value="35" />
                Robotic Welding<br />
                <input name="InterestArea" type="checkbox"  value="16" />
                Roll Forming<br />
                <input name="InterestArea" type="checkbox"  value="17" />
                Safety<br />
                <input name="InterestArea" type="checkbox"  value="7" />
                Sawing<br />
                <input name="InterestArea" type="checkbox"  value="8" />
                Shearing<br />
                <input name="InterestArea" type="checkbox"  value="18" />
                Shop Management<br />
                <input name="InterestArea" type="checkbox"  value="22" />
                Testing and Measuring<br />
                <input name="InterestArea" type="checkbox"  value="23" />
                Tool and Die<br />
                <input name="InterestArea" type="checkbox"  value="24" />
                Tube and Pipe Fabrication<br />
                <input name="InterestArea" type="checkbox"  value="25" />
                Tube and Pipe Production<br />
                <input name="InterestArea" type="checkbox"  value="9" />
                Waterjet Cutting<br />
                <input name="InterestArea" type="checkbox"  value="36" />
                Welding Inspection<br />
                <br /></td>
            </tr>--->
          </table>
          <table cellpadding="5" width="550" align="center">
            <tr>
              <td colspan="2"><b>Total employees at this location:</b><br />
                  <hr /></td>
            </tr>
            <tr>
              <td valign="top"><input type="radio" name="employees" value="0" />
                1-19&nbsp;<br />
                <input type="radio" name="employees" value="1" />
                20-49&nbsp;<br />
                <input type="radio" name="employees" value="2" />
                50-99&nbsp;<br />
                <input type="radio" name="employees" value="3" />
                100-249&nbsp;<br />
                <br />
              </td>
              <td valign="top"><input type="radio" name="employees" value="4" />
                250-499&nbsp;<br />
                <input type="radio" name="employees" value="5" />
                500-999&nbsp;<br />
                <input type="radio" name="employees" value="6" />
                1,000+ </td>
            </tr>
            <tr>
              <td colspan="2"><b>Type of company:</b><br />
                  <hr />
                  <input type="radio" name="CompanyType" value="G" />
                Contract Manufacturer/Job Shop<br />
                  <input type="radio" name="CompanyType" value="J" />
                End Product Manufacturer/OEM<br />
                  <input type="radio" name="CompanyType" value="K" />
                Service Center<br />
                  <input type="radio" name="CompanyType" value="H" />
                Toll Processor<br />
                  <input type="radio" name="CompanyType" value="L" />
                Other<br />
                <br /></td>
            </tr>
            <tr>
              <td colspan="2" align="left"><b>E-newsletters</b><br />
                  <hr />
                <input type="checkbox" name="eNewsletter_Fabcom" value="1" />
                Yes, I would like to receive the Fabricating Update e-newsletter.<br />
                <input type="checkbox" name="eNewsletter_TT" value="1" />
                Yes, I would like to receive the Tube Talk e-newsletter.<br />
                <input type="checkbox" name="eNewsletter_WW" value="1" />
                Yes, I would like to receive the Welding Wire e-newsletter.<br />
                <input type="checkbox" name="eNewsletter_SNB" value="1" />
                Yes, I would like to receive the Stamping News Brief e-newsletter.</td>
            </tr>
   
            <tr>
              <td colspan="2"><hr />
                  <input type="checkbox" name="ReceiveVendorEmails" value="1" style="background-color:#DFEDFE" />
                Yes, I would like to receive e-mails from industry vendors/suppliers based on <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my interest areas.</td>
            </tr>
            <tr>
              <td colspan="2"><hr />
                  <input type="checkbox" name="outsideusa" value="1" />
                I reside outside North America and would like to receive subscription<br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;information.</td>
            </tr>
            <tr>
              <td colspan="2"><hr />
In lieu of a signature, we require a unique identifier used only for subscription verification purposes.  How many siblings do you have?              <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <cfinput name="BPA_city" 
		 type="text" 
		 size="20" 
		 style="background-color:##DFEDFE;"
		 required="yes"
		 message="Please provide your mothers maiden name."
		 >
                <br />
                <hr /></td>
            </tr>
          </table>
          <div align="center"> <br />
              <cfif IsDefined("URL.SC")>
                <cfif URL.SC EQ "FAB">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "FAB">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "Requal">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "SJ">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "Requal">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "PWT">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "Requal">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "TPJ">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
                <cfif URL.SC EQ "Requal">
                  <input type="hidden" name="Subscriber" value="1" />
                  <cfset SESSION.ArticleID = URL.ID>
                </cfif>
              </cfif>
              <cfif SESSION.HTTP_REFERER NEQ "">
<input type="hidden" name="Referer" value="<cfoutput>#SESSION.HTTP_REFERER#</cfoutput>" />
</cfif> 
              <input type="submit" name="Submit" value="Submit" />
            &nbsp;&nbsp;
            <input type="reset" name="Reset" value="Reset" />
          </div>
        </cfform></td>
  </tr>
</table>

Open in new window

0
Albee_J
Asked:
Albee_J
  • 3
1 Solution
 
Albee_JAuthor Commented:
Oops gave you the wrong action file:

<!--- types: HOME, TPJ, SJ --->
<cfparam name="FORM.NotReceiveName" default="">
<cfparam name="FORM.ReceiveName" default="Error">
<cfparam name="FORM.Receivepub" default="1">
<cfparam name="FORM.DeliveryHome" default="0">
<cfparam name="FORM.DeliveryBusiness" default="0">
<cfparam name="FORM.PrintType" default="">
<cfparam name="FORM.PrintTypeFAB" default="">
<cfparam name="FORM.PrintTypePWT" default="">
<cfparam name="FORM.PrintTypeSTP" default="">
<cfparam name="FORM.Enewsletter_Fabcom" default="0">
<cfparam name="FORM.Enewsletter_TT" default="0">
<cfparam name="FORM.Enewsletter_WW" default="0">
<cfparam name="FORM.Enewsletter_SNB" default="0">
<cfparam name="FORM.Outsideusa" default="0">
<cfparam name="FORM.ReceiveVendorEmails" default="0">
<cfparam name="FORM.FaxLine" default="">
<cfparam name="FORM.PhoneLine" default="">
<cfparam name="FORM.FirstName" default="">
<cfparam name="FORM.LastName" default="">
<cfparam name="FORM.CompanyName" default="">
<cfparam name="FORM.CompanyAddress" default="">
<cfparam name="FORM.CompanyAddress2" default="">
<cfparam name="FORM.CompanyCity" default="">
<cfparam name="FORM.CompanyState" default="">
<cfparam name="FORM.CompanyZip" default="">
<cfparam name="FORM.CompanyCountry" default="">
<cfparam name="FORM.Email" default="">
<cfparam name="FORM.EndProduct" default="">
<cfparam name="FORM.PriorityCode" default="">
<cfparam name="FORM.InterestArea" default="">
<cfparam name="FORM.BuySpecifyApprove" default="">
<cfparam name="FORM.Buy" default="">
<cfparam name="FORM.Employees" default="">
<cfparam name="FORM.CompanyType" default="">
<cfparam name="FORM.BPA_City" default="">
<cfparam name="FORM.JobFunction" default="">
<cfparam name="FORM.WeldBusiness" default="">
<cfparam name="FORM.PhoneAreaCode" default="">
<cfparam name="FORM.FaxAreaCode" default="">
<cfparam name="FORM.IntPhone" default="">
<cfparam name="FORM.IntFax" default="">
<cfparam name="IndivPhoneNumb" default="">
<cfparam name="IndivPhoneArea" default="">
<cfparam name="IndivFaxArea" default="">
<cfparam name="IndivFaxNumb" default="">
<cfparam name="FaxArea" default="">
<cfparam name="FaxNumb" default="">
<cfparam name="PhoneArea" default="">
<cfparam name="PhoneNumb" default="">
<cfparam name="FORM.Referer" default="">


<cfif FORM.Enewsletter_Fabcom EQ 1>
<cfset Enewsletter_Fabcom = "Y">
<cfelse>
<cfset Enewsletter_Fabcom = "N">
</cfif>
<cfif FORM.Enewsletter_TT EQ 1>
<cfset Enewsletter_TT = "Y">
<cfelse>
<cfset Enewsletter_TT = "N">
</cfif>
<cfif FORM.Enewsletter_WW EQ 1>
<cfset Enewsletter_WW = "Y">
<cfelse>
<cfset Enewsletter_WW = "N">
</cfif>
<cfif FORM.Enewsletter_SNB EQ 1>
<cfset Enewsletter_SNB = "Y">
<cfelse>
<cfset Enewsletter_SNB = "N">
</cfif>
<cfif FORM.ReceiveVendorEmails EQ 1>
<cfset ReceiveVendorEmails = "Y">
<cfelse>
<cfset ReceiveVendorEmails = "N">
</cfif>


<cfif FORM.PhoneLine EQ "Direct">
<!--- PHONE DIRECT is TRUE --->
<cfif FORM.PhoneAreaCode NEQ "">
<!--- Phone area code present --->
      <cfset IndivPhoneArea = FORM.PhoneAreaCode>
      <cfset IndivPhoneNumb = FORM.Phoneprefix&'-'&FORM.PhoneSuffix>
      <cfset PhoneArea = " ">
      <cfset PhoneNumb = " ">
<cfelse>
<!--- Phone area code not present --->
      <cfset IndivPhoneArea = " ">
      <cfif FORM.IntPhone NEQ "">
            <cfset IndivPhoneNumb = FORM.IntPhone>
      <cfelse>
            <cfset IndivPhoneNumb = " ">
      </cfif>
      <cfset PhoneArea = " ">
      <cfset PhoneNumb = " ">
</cfif>      

<cfelseif FORM.PhoneLine EQ "Company">
<!--- PHONE COMPANY is TRUE --->
<cfif FORM.PhoneAreaCode NEQ "">
<!--- Phone area code present --->
      <cfset IndivPhoneArea = " ">
      <cfset IndivPhoneNumb = " ">
      <cfset PhoneArea = FORM.PhoneAreaCode>
      <cfset PhoneNumb = FORM.Phoneprefix&'-'&FORM.PhoneSuffix>
<cfelse>
<!--- Phone area code not present --->
      <cfset IndivPhoneArea = " ">
      <cfset IndivPhoneNumb = " ">
      <cfset PhoneArea = " ">
      <cfif FORM.IntPhone NEQ "">
            <cfset PhoneNumb = FORM.IntPhone>
      <cfelse>
            <cfset PhoneNumb = " ">
      </cfif>
</cfif>      
</cfif>

<cfif FORM.FaxLine EQ "Direct">
<!--- Fax DIRECT is TRUE --->
<cfif FORM.FaxAreaCode NEQ "">
<!--- Fax area code present --->
      <cfset IndivFaxArea = FORM.FaxAreaCode>
      <cfset IndivFaxNumb = FORM.Faxprefix&'-'&FORM.FaxSuffix>
      <cfset FaxArea = " ">
      <cfset FaxNumb = " ">
<cfelse>
<!--- Fax area code not present --->
      <cfset IndivFaxArea = " ">
      <cfif FORM.IntFax NEQ "">
            <cfset IndivFaxNumb = FORM.IntFax>
      <cfelse>
            <cfset IndivFaxNumb = " ">
      </cfif>
      <cfset FaxArea = " ">
      <cfset FaxNumb = " ">
</cfif>      

<cfelseif FORM.FaxLine EQ "Company">
<!--- Fax COMPANY is TRUE --->
<cfif FORM.FaxAreaCode NEQ "">
<!--- Fax area code present --->
      <cfset IndivFaxArea = " ">
      <cfset IndivFaxNumb = " ">
      <cfset FaxArea = FORM.FaxAreaCode>
      <cfset FaxNumb = FORM.Faxprefix&'-'&FORM.FaxSuffix>
<cfelse>
<!--- Fax area code not present --->
      <cfset IndivFaxArea = " ">
      <cfset IndivFaxNumb = " ">
      <cfset FaxArea = " ">
      <cfif FORM.IntFax NEQ "">
            <cfset FaxNumb = FORM.IntFax>
      <cfelse>
            <cfset FaxNumb = " ">
      </cfif>
</cfif>      
</cfif>
<cftransaction>



<cfloop list="#FORM.ReceiveName#" index="i" delimiters=",">
<cfquery datasource="FCData" name="INSERT_Subscription">
INSERT INTO tSubscriptions(
SubscriptionDate,
ReceivePub,
Pub,
PrintType,
FirstName,
LastName,
CompanyName,
CompanyAddress,
CompanyAddress2,
CompanyCity,
CompanyState,
CompanyZip,
CompanyCountry,
DeliveryHome,
DeliveryBusiness,
PhoneLine,
FaxLine,
Email,
EndProduct,
PriorityCode,
InterestArea,
BuySpecifyApprove,
JobFunction,
WeldBusiness,
Employees,
CompanyType,
Enewsletter_Fabcom,
Enewsletter_TT,
Enewsletter_WW,
Enewsletter_SNB,
ReceiveVendorEmails,
BPA_City,
IndivFaxArea,
IndivFaxNumb,
FaxArea,
FaxNumb,
IndivPhoneArea,
IndivPhoneNumb,
PhoneArea,
Referer,
<cfif IsDefined('SESSION.NameID')>
NameID,
</cfif>
PhoneNumb
)
VALUES (
#CreateODBCDateTime(Now())#,
#FORM.ReceivePub#,
'#i#',
<cfif i EQ "PWT" AND IsDefined('FORM.PrintTypePWT')>
'#FORM.PrintTypePWT#',
<cfelseif i EQ "FAB" AND IsDefined('FORM.PrintTypeFAB')>
'#FORM.PrintTypeFAB#',
<cfelseif i EQ "SJ" AND IsDefined('FORM.PrintTypeSTP')>
'#FORM.PrintTypeSTP#',
<cfelse>
'Print',
</cfif>
'#FORM.FirstName#',
'#FORM.LastName#',
'#FORM.CompanyName#',
'#FORM.CompanyAddress#',
'#FORM.CompanyAddress2#',
'#FORM.CompanyCity#',
'#FORM.CompanyState#',
'#FORM.CompanyZip#',
'#FORM.CompanyCountry#',
#FORM.DeliveryHome#,
#FORM.DeliveryBusiness#,
'#FORM.PhoneLine#',
'#FORM.FaxLine#',
'#FORM.Email#',
'#FORM.EndProduct#',
'#FORM.PriorityCode#',
'#ListSort(FORM.InterestArea,"Numeric", "ASC")#',
'#FORM.BuySpecifyApprove#',
'#FORM.JobFunction#',
'#FORM.WeldBusiness#',
'#FORM.Employees#',
'#FORM.CompanyType#',
'#Enewsletter_Fabcom#',
'#Enewsletter_TT#',
'#Enewsletter_WW#',
'#Enewsletter_SNB#',
'#ReceiveVendorEmails#',
'#FORM.BPA_City#',
'#IndivFaxArea#',
'#IndivFaxNumb#',
'#FaxArea#',
'#FaxNumb#',
'#IndivPhoneArea#',
'#IndivPhoneNumb#',
'#PhoneArea#',
'#FORM.Referer#',
<cfif IsDefined('SESSION.NameID')>
#SESSION.NameID#,
</cfif>
'#PhoneNumb#'
)
</cfquery>
</cfloop>



</cftransaction>
<cfif FORM.Email CONTAINS "AOL.COM" OR FORM.Email CONTAINS "hotmail.com" OR FORM.Email CONTAINS "msn.com">

 
<cfmail to="#FORM.Email#"
            from="info@thefabricator.com"
            subject="Newsletters from thefabricator.com"
            type="html"
            >
<table cellpadding="3" cellspacing="0" width="550" border="0">
<tr>
<td>Dear #FORM.FirstName#: <br/><br/>

<p>Please be sure to whitelist <b>newsletters@thefabricator.com</b> to insure continued delivery.</p>
 
<p>Thank you,  <br/>
FMA Communications, Inc.</p>
</td>
</tr>
</table>
</cfmail>            
</cfif>
<cf_FMAC-Header>
<cf_SecondNav page="Subscribers">
<!-- InstanceEndEditable -->
<div id="content">
<!-- InstanceBeginEditable name="content" -->

<cfif #FORM.ReceiveName# EQ "Error" AND #FORM.NotReceiveName# EQ "">
  <p class="bodytext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Oops. You did not select a <b>Publication</b> please <a href="javascript:history.go(-1)">click here</a> and check <b>Yes</b> next to the publication of your choice.<br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1)"><b>Back up</b></a></p>
<cfelse>

<h1>Thank you!</h1>

<ul>
  <li><a href="http://www.fma-communications.com/Subscriptions.cfm"> Subscribe </a> to another FMA Communications, Inc. publication. </li>
  <li>Invite a colleague to subscribe --<a href="http://www.fma-communications.com/SendtoaFriend_FMAC/Send_to_a_friend.cfm?PUB=SJ">  click here </a> to email the subscription page. </li>
</ul>
<h2> Search our:</h2>
<ul>
  <li>  <a href="http://www.thefabricator.com/Article_Archive/Article_Archive.cfm">Article  Archive</a> </li>
  <li><a href="http://www.ffid.net">Industry Supplier Directory </a></li>
  <li><a href="http://www.thefabricator.com/classified"> Classifieds </a></li>
  <li><a href="https://www.fmanet.org/FMAstore/index.cfm"> FMA Book Store </a></li>
  <li><a href="http://www.thefabricator.com/Buyers-Guides.cfm"> Searchable  Buyers' Guides </a></li>
  <li><a href="http://www.fmanet.org/JobBoard/Main.cfm"> Job Board </a></li>
  <li><a href="http://www.fmafabtech.com"> FABTECH&reg; International </a></li>
  <li><a href="http://www.fmanet.org/Conferences/Conference-Calendar.cfm"> Conference  Schedules </a></li>
  <li><a href="http://www.fmanet.org/Membership/FMA-Membership.cfm"> FMA </a> &amp; <a href="http://www.fmanet.org/Membership/FMA-Membership.cfm"> TPA  </a> Membership Information</li>
  <li><a href="http://www.fma-communications.com"> Advertising opportunities </a> <br />
  </li>
</ul>
</ul>            
            <cfif IsDefined("SESSION.ArticleID")>
                  <table width="550" align="center">
                    <tr>
                      <td width="50"></td>
                      <td align="center">
                        <table width="450" border="2"  cellpadding="0" cellspacing= "0" bordercolor="#AABBD8" align="center">
                    <tr>
                      <td align="center"><br/><cfoutput><span class="homepghead">You may now view the Subscriber Only Content.</span> <br/><cfset SESSION.LoggedGood = 1>
                             
              Click <a href="http://www.thefabricator.com/Articles/Subscriber_Content.cfm?ID=#SESSION.ArticleID#&New=Yes">here</a> to read the article.</cfoutput> <br/></td>
                    </tr>
                          </table></td>
                      <td width="50"></td>
                  </tr>
                </table></cfif>
                  <p><b>Tell us your ideas<br/>
            </b>Our staff is always eager to hear <a href="mailto:vickib@thefabricator.com?Subject=thefabricator.com%20article%20proposalv">article proposals</a> and other <a href="mailto:webmaster@thefabricator.com?Subject=thefabricator.com%20site%20suggestions">site suggestions</a> from industry professionals. If your company has made new strides in your fabrication process, we want to hear the keys to your success. We may feature your company in an upcoming issue.</p>
            <p><b>thefabricator.com</b><br/>
              Vicki Bell, Web Content Manager<br/>
            833 Featherstone Rd.<br/>
            Rockford, IL 61107<br/>
            fax: 815-381-1370<br/>
            e-mail:<a href="mailto:vickib@thefabricator.com">vickib@thefabricator.com</a></p>          </td>
        </tr>
      </table></cfif>


<!-- InstanceEndEditable --></div>

<!-- InstanceBeginEditable name="footer" -->

<cfif CGI.REMOTE_ADDR EQ "216.124.168.3">
    <cfdump var="#FORM#" expand="no"/>
</cfif>


<cfif FORM.PrintTypeFAB EQ "Digital" OR FORM.PrintTypePWT EQ "Digital" >

<cfscript>
            SESSION.ReceiveName = FORM.ReceiveName;
        SESSION.Email = FORM.Email;
        SESSION.firstname = FORM.firstname;
        SESSION.lastname = FORM.lastname;
    </cfscript>
     
 <cflocation addtoken="no" url="Digital-Thankyou.cfm">
  </cfif>
0
 
duncancummingCommented:
Personally I'd just make one of the two options selected by default.

<cfinput type="radio" name="PrintTypeFAB" value="Print" checked /> Print Version &nbsp;
<cfinput type="radio" name="PrintTypeFAB" value="Digital" /> Digital Version <br />

0
 
Albee_JAuthor Commented:
Ah I c.

I ended up adding this line of code...

<cfelseif #FORM.PrintType# EQ "">
  <p class="bodytext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Oops. You did not select a <strong>Print Type </strong>please <a href="javascript:history.go(-1)">click here</a> and select <b>Print or Digital</b> next to the publication of your choice.<br />
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1)"><b>Back up</b></a></p>
<cfelse>
0
 
Albee_JAuthor Commented:
solved on my own.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now