<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hamilton Computer Services - Picobits Ltd. &#187; design</title>
	<atom:link href="http://picobits.com/tag/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://picobits.com</link>
	<description>the power of small</description>
	<lastBuildDate>Sun, 08 Nov 2009 03:52:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to create a contact form on a GoDaddy hosting account</title>
		<link>http://picobits.com/2007/12/how-to-create-a-contact-form-on-a-godaddy-hosting-account/</link>
		<comments>http://picobits.com/2007/12/how-to-create-a-contact-form-on-a-godaddy-hosting-account/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 17:29:43 +0000</pubDate>
		<dc:creator>Angela</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[godaddy sucks]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://picobits.com/tips/2007/12/20/how-to-create-a-contact-form-on-a-godaddy-hosting-account/</guid>
		<description><![CDATA[Let me start by saying I hate GoDaddy.  Their customer service sucks, you get little to no useful help.  Their user interface sucks, it&#8217;s ad-laden and not user-friendly.  And today I&#8217;ve learned their hosting environment sucks too.
Also let me lay down this disclaimer:  I&#8217;m not a website designer.  I can [...]]]></description>
			<content:encoded><![CDATA[<p>Let me start by saying I hate GoDaddy.  Their customer service sucks, you get little to no useful help.  Their user interface sucks, it&#8217;s ad-laden and not user-friendly.  And today I&#8217;ve learned their hosting environment sucks too.</p>
<p>Also let me lay down this disclaimer:  I&#8217;m not a website designer.  I can do simple HTML, simple image manipulation, I know just enough to be dangerous about ASP and PHP (and that&#8217;s not much), and I can create easy-to-use and functional websites.</p>
<p>If you&#8217;re unfortunate enough to be a GoDaddy customer, you may have encountered this issue.  I created a simple ASP contact form to use on a site I was designing for a friend.  It&#8217;s very simple &#8212; just a name, email address, and text area for comments.  No required fields.  I&#8217;ve used this form in the past with no problems.  Alas, it didn&#8217;t work.  With the internet at my fingertips, I encountered <a href="http://www.codefixer.com/forum/topic.asp?TOPIC_ID=349">various</a> <a href="http://forums.aspfree.com/asp-development-5/asp-email-form-on-godaddy-114110.html">other</a> <a href="http://nicole.cfwebtools.com/index.cfm/2007/12/6/ASP%20form%20mail">people</a> with this problem, and not just because something was wrong with the code, but because GoDaddy uses CDO.Message rather than CDONTS.  Not only that, but you also need the SMTP server information in order to use it, which they don&#8217;t publicly address anywhere.</p>
<p>GoDaddy support says to use their own special <a href="http://help.godaddy.com/article.php?article_id=512&amp;topic_id=100">gdform.asp</a> (or gdform.php depending on your package), which also seems to require you &#8220;activate&#8221; it using your hosting control panel.  I didn&#8217;t have access to this (I only had FTP access) so I had to find an alternative.</p>
<p>Finally, with the help of <a href="http://www.issociate.de/board/post/455626/GoDaddy_script_problems,_Dave!.html">this post</a>, I was able get it working.  I modified the code slightly to redirect to a thank you page.</p>
<p>Use the code below to create your own.  Copy the code into your contact.htm (or whatever you&#8217;re using) and customize the form, copy the code for the contact.asp page and modify the redirect (or remove it if you like) to the page you&#8217;d like to send them to after the form is submitted.</p>
<p><strong>Contact.htm</strong></p>
<p>&lt;form name=&#8221;email&#8221; action=&#8221;contact.asp&#8221; method=post&gt;<br />
&lt;p&gt;Name:&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; size=&#8221;25&#8243; /&gt;&lt;/p&gt;<br />
&lt;p&gt;Email address:&lt;br /&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; size=&#8221;25&#8243; /&gt;&lt;/p&gt;<br />
&lt;p&gt;Questions, comments?&lt;br /&gt;<br />
&lt;textarea rows=&#8221;10&#8243; cols=&#8221;60&#8243; name=&#8221;comments&#8221;&gt;&lt;/textarea&gt;&lt;/p&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Send&#8221; /&gt;&lt;/p&gt;<br />
&lt;/form&gt;</p>
<p><strong>Contact.asp</strong></p>
<p>&lt;% @ Language=&#8221;VBSCRIPT&#8221; %&gt;</p>
<p>&lt;% If Request.ServerVariables(&#8220;REQUEST_METHOD&#8221;) = &#8220;POST&#8221; Then<br />
&#8216;*<br />
&#8216;* Send Email<br />
&#8216;*<br />
Dim strBOD<br />
strBOD = &#8220;Name: &#8221; &amp; Request.Form(&#8220;name&#8221;) &amp; vbCrLf _<br />
&amp; &#8220;Email: &#8221; &amp; Request.Form(&#8220;email&#8221;) &amp; vbCrLf &amp; vbCrLf _<br />
&amp; Request.Form(&#8220;comments&#8221;)<br />
Dim objCFG<br />
Set objCFG = Server.CreateObject(&#8220;CDO.Configuration&#8221;)<br />
objCFG.Fields.Item(aCDO &amp; &#8220;sendusing&#8221;) = 2<br />
objCFG.Fields.Item(aCDO &amp; &#8220;smtpserver&#8221;) = &#8220;<strong>relay-hosting.secureserver.net</strong>&#8221;<br />
objCFG.Fields.Item(aCDO &amp; &#8220;smtpserverport&#8221;) = <strong>25</strong><br />
objCFG.Fields.Update<br />
Dim objCDO<br />
Set objCDO = Server.CreateObject(&#8220;CDO.Message&#8221;)<br />
objCDO.Configuration = objCFG<br />
objCDO.From = Request.Form(&#8220;email&#8221;)<br />
objCDO.To = &#8220;<strong>inquiries@yourwebsitehere.ca</strong>&#8221;<br />
objCDO.Subject = &#8220;<strong>Website inquiry</strong>&#8221;<br />
objCDO.TextBody = strBOD<br />
objCDO.Send<br />
Response.Redirect &#8220;<strong>thanks.shtml</strong>&#8221;<br />
Set objCDO = Nothing<br />
Set objCFG = Nothing<br />
End If</p>
<p>%&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://picobits.com/2007/12/how-to-create-a-contact-form-on-a-godaddy-hosting-account/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
