<?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>Dave PC Guy &#187; web extras</title>
	<atom:link href="http://www.davepcguy.com/archive/tag/web-extras/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davepcguy.com</link>
	<description>Computers and Technology</description>
	<lastBuildDate>Fri, 10 Sep 2010 15:43:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up Feedburner Feeds</title>
		<link>http://www.davepcguy.com/archive/setting-up-feedburner-feeds/</link>
		<comments>http://www.davepcguy.com/archive/setting-up-feedburner-feeds/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 05:09:53 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[General Articles]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[web extras]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.davepcguy.com/?p=1167</guid>
		<description><![CDATA[Have you ever wondered about that pretty subscriber counter most blogs have on their pages? How do they know exactly how many people are following them? It&#8217;s called FeedBurner.  I&#8217;ve been using it for a while now and it never occurred to me how much POWER such a service can have! Not only are you]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;source=clrkmck&amp;style=normal&amp;service_api=clrkmck%3AR_a73f58a91ed3515157df75ab6c37730f&amp;hashtags=blog,feed,web+extras,webpage,wordpress" height="61" width="50" /><br />
			</a>
		</div>
<p>Have you ever wondered about that pretty subscriber counter most blogs have on their pages? How do they know exactly how many people are following them?</p>
<p>It&#8217;s called FeedBurner.  I&#8217;ve been using it for a while now and it never occurred to me how much POWER such a service can have! Not only are you provided with statistics, but you can add ads to the feed, get a counter, update twitter automatically, and a whole spectrum of other features.<span id="more-1167"></span></p>
<p>Here&#8217;s what I&#8217;m going to cover in this short tutorial:</p>
<ul>
<li>getting a FeedBurner Feed</li>
<li> Setting it up</li>
<li>incorporating the feed into your website.</li>
</ul>
<h3>Getting a Feed</h3>
<p>This is actually the easiest part. All you need is a google account and go<a title="FeedBurner" href="http://feedburner.google.com/"> here</a>. Once you&#8217;re at the dashboard, look over here:</p>
<p><a rel="attachment wp-att-1168" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/burner1/"><img class="aligncenter size-full wp-image-1168" title="dashboard" src="http://www.davepcguy.com/wp-content/uploads/2010/03/burner1.jpg" alt="" width="500" height="149" /></a>Okay, now go to your blog site. I&#8217;m using one of my newer <a title="Living Smart Green" href="http://livingsmartgreen.com/">blogs</a> so just type in the URL.</p>
<ul>
<li>In my case, I typed in <strong>http://www.livingsmartgreen.com/ </strong>Click next.</li>
<li>If you have several RSS feeds available, such as RSS, RSS2, or Atom. Pick one of them. Click next.</li>
<li>The feed title and address should be already filled in, if not, just type those in. <a rel="attachment wp-att-1169" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/burner2/"><img class="aligncenter size-full wp-image-1169" title="Feed" src="http://www.davepcguy.com/wp-content/uploads/2010/03/burner2.jpg" alt="" width="415" height="159" /></a></li>
<li>Click next. It should tell you that everything&#8217;s done! Click next anyways.</li>
<li>Check off all the boxes there for extra statistics. Next.</li>
</ul>
<p>Yay, now you&#8217;ve got your feed!</p>
<h3>Setting up that feed!</h3>
<p>You should be at the main feed page (not the dashboard). Here&#8217;s what mine looks like:</p>
<p><a rel="attachment wp-att-1170" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/burner3/"><img class="aligncenter size-medium wp-image-1170" title="main site" src="http://www.davepcguy.com/wp-content/uploads/2010/03/burner3-300x126.jpg" alt="" width="300" height="126" /></a> Looks good so far. <a rel="attachment wp-att-1171" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/burner4/"><img class="size-full wp-image-1171 alignleft" title="sidebar" src="http://www.davepcguy.com/wp-content/uploads/2010/03/burner4.jpg" alt="" width="197" height="447" /></a>The &#8220;analyze&#8221; part will not work just yet. You&#8217;ll have to wait for that so let&#8217;s skip to &#8220;publicize&#8221; the most important part. Here is the deal, FeedBurner offers A LOT of services, most of which you will never use. Some of them are truly just annoying services so don&#8217;t bother. Try them out, and have fun. Here are the essentials:</p>
<p>Go to &#8220;<strong>PingShot</strong>&#8221; first and activate it. There are some services that like to get notified whenever your RSS feed changes. This will boost your traffic, hopefully.</p>
<p>Next, go to &#8220;<strong>socialize</strong>&#8221; and add your twitter account if you want. Your feed will be reposted on twitter (thus you don&#8217;t have to use the WP&gt;twitter WordPress Plugin). Under &#8220;hash tags&#8221; choose the &#8220;Create hashtags&#8230;.&#8221; option. That&#8217;s all you need, activate the service and be on your way.</p>
<p>Go to &#8220;<strong>creative commons</strong>&#8221; and choose the appropriate license. This makes sure you retain the rights to your content. It&#8217;s a smart thing, trust me on this one.</p>
<p>As for the rest:</p>
<ul>
<li><strong>Headline Animator </strong>creates a banner that shows off your latest feeds as well as a link to your site.</li>
<li><strong>BuzzBoost</strong> does something similar, except it creates a gadget. If you have been following my blog for the past few months, I always had it in the left sidebar under the meta.</li>
<li><strong>Email subscription</strong>. Another nice gadget that lets users subscribe via e-mail rather than RSS. Try it out if you want to.</li>
<li><strong>FeedCount. </strong>Okay, this is everyone&#8217;s favorite. This is that little counter thing that tells everyone on your blog how many people are subscribe. If you want it to look fancier, I suggest you use <a title="Feedburner API" href="http://visionmasterdesigns.com/tutoral-display-noof-rss-readers-using-feedburner-api-and-php-curl/">this tutorial</a> to create your own little piece of PHP code and get an actual text value for the number of subscribers. You will probably have to enable the <strong>awareness API</strong> for this to work.</li>
<li><strong>Chicklet Chooser.</strong> Another nice gadget. This one is used for the actual Feed. If you don&#8217;t already have an RSS icon or want to use one of Feedburner&#8217;s pre-made icons, go ahead and activate this and customize your own icon. Copy the code, and paste it to your site where you want it.</li>
<li><strong>Password Protector and NoIndex.</strong> Password protector is used if you want to protect your feed from other people. ie. make it private. NoIndex makes sure your feed is not submitted to any search engine (I suggest against it.</li>
</ul>
<p>That&#8217;s pretty much it. If you go to <strong>optimize</strong>, you will be able to add some new functionality to your feed such as e-mail replies, images, and shortened URL&#8217;s. I don&#8217;t see the point in that so let&#8217;s move on. If you go to <strong>monetize</strong>, you will be asked to go to google&#8217;s <strong>AdSense</strong>. Log into there if you have an account set up. Go to <strong>AdSense Setup </strong>and add a Feed. Straightforward setup.</p>
<h3>WordPress/Blog Integration</h3>
<p>It&#8217;s easy to integrate your FeedBurner Feed into WordPress.  Go to Plugins &gt; Add New and serach for &#8220;FeedBurner&#8221;. Install and activate the plugin called: <strong>FD Feedburner Plugin. </strong>Moving on, under Plugins, you should find <strong>Feedburner Configuration</strong>. Go there. Here&#8217;s my setup:</p>
<p><a rel="attachment wp-att-1178" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/feedburner/"><img class="aligncenter size-full wp-image-1178" title="FeedBurner" src="http://www.davepcguy.com/wp-content/uploads/2010/03/FeedBurner.jpg" alt="" width="552" height="388" /></a> I checked off two of those options, you don&#8217;t need to. It&#8217;s up to you. If you cannot remember the Feed URL, go back to that main page and click on the RSS button. Use that link:</p>
<p><a rel="attachment wp-att-1179" href="http://www.davepcguy.com/archive/setting-up-feedburner-feeds/feedburner2/"><img class="aligncenter size-medium wp-image-1179" title="feedburner2" src="http://www.davepcguy.com/wp-content/uploads/2010/03/feedburner2-300x41.jpg" alt="" width="300" height="41" /></a>Save the options and you&#8217;re done!</p>
<h3>What&#8217;s the next step?</h3>
<p>The next step is optimizing your feed, analyzing the data, and doing whatever. There are a lot of choices to make and a lot of features you can take advantage of. Just have fun and see what you can accomplish!<br />
</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;partner=sociable" title="Print"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds&amp;bodytext=Have%20you%20ever%20wondered%20about%20that%20pretty%20subscriber%20counter%20most%20blogs%20have%20on%20their%20pages%3F%20How%20do%20they%20know%20exactly%20how%20many%20people%20are%20following%20them%3F%0D%0A%0D%0AIt%27s%20called%20FeedBurner.%20%C2%A0I%27ve%20been%20using%20it%20for%20a%20while%20now%20and%20it%20never%20occurred%20to%20me%20how%20m" title="Digg"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds&amp;notes=Have%20you%20ever%20wondered%20about%20that%20pretty%20subscriber%20counter%20most%20blogs%20have%20on%20their%20pages%3F%20How%20do%20they%20know%20exactly%20how%20many%20people%20are%20following%20them%3F%0D%0A%0D%0AIt%27s%20called%20FeedBurner.%20%C2%A0I%27ve%20been%20using%20it%20for%20a%20while%20now%20and%20it%20never%20occurred%20to%20me%20how%20m" title="del.icio.us"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;t=Setting%20up%20Feedburner%20Feeds" title="Facebook"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds&amp;annotation=Have%20you%20ever%20wondered%20about%20that%20pretty%20subscriber%20counter%20most%20blogs%20have%20on%20their%20pages%3F%20How%20do%20they%20know%20exactly%20how%20many%20people%20are%20following%20them%3F%0D%0A%0D%0AIt%27s%20called%20FeedBurner.%20%C2%A0I%27ve%20been%20using%20it%20for%20a%20while%20now%20and%20it%20never%20occurred%20to%20me%20how%20m" title="Google Bookmarks"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds&amp;source=Dave+PC+Guy+Computers+and+Technology&amp;summary=Have%20you%20ever%20wondered%20about%20that%20pretty%20subscriber%20counter%20most%20blogs%20have%20on%20their%20pages%3F%20How%20do%20they%20know%20exactly%20how%20many%20people%20are%20following%20them%3F%0D%0A%0D%0AIt%27s%20called%20FeedBurner.%20%C2%A0I%27ve%20been%20using%20it%20for%20a%20while%20now%20and%20it%20never%20occurred%20to%20me%20how%20m" title="LinkedIn"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds" title="Reddit"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;t=Setting%20up%20Feedburner%20Feeds&amp;s=Have%20you%20ever%20wondered%20about%20that%20pretty%20subscriber%20counter%20most%20blogs%20have%20on%20their%20pages%3F%20How%20do%20they%20know%20exactly%20how%20many%20people%20are%20following%20them%3F%0D%0A%0D%0AIt%27s%20called%20FeedBurner.%20%C2%A0I%27ve%20been%20using%20it%20for%20a%20while%20now%20and%20it%20never%20occurred%20to%20me%20how%20m" title="Tumblr"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Setting%20up%20Feedburner%20Feeds%20-%20http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F" title="Twitter"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Setting%20up%20Feedburner%20Feeds&amp;body=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F" title="email"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Setting%20up%20Feedburner%20Feeds&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F" title="Slashdot"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fsetting-up-feedburner-feeds%2F&amp;title=Setting%20up%20Feedburner%20Feeds" title="StumbleUpon"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davepcguy.com/archive/setting-up-feedburner-feeds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Trick: Disappearing Textbox</title>
		<link>http://www.davepcguy.com/archive/css-trick-disappearing-textbox/</link>
		<comments>http://www.davepcguy.com/archive/css-trick-disappearing-textbox/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 16:21:45 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[web extras]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.davepcguy.com/?p=777</guid>
		<description><![CDATA[Remember that trick to show a sub-menu using CSS in my older tutorial? Well, I had an idea for a project of mine, and with a little help from my dear friend Raphael. Last night, I launched my little website project called &#8220;A Night Story&#8221; and made some tweaks. Ignore the story, it&#8217;s just a]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;source=clrkmck&amp;style=normal&amp;service_api=clrkmck%3AR_a73f58a91ed3515157df75ab6c37730f&amp;hashtags=css,formatting,project,text,web+extras,webpage,website" height="61" width="50" /><br />
			</a>
		</div>
<p>Remember that trick to show a sub-menu using CSS in my <a title="CSS Vertical Navigation" href="http://www.davepcguy.com/archive/css-vertical-navigation/">older tutorial?</a> Well, I had an idea for a project of mine, and with a little help from my dear friend <a title="Raphael Caixeta" href="http://www.raphaelcaixeta.com">Raphael</a>. Last night, I launched my little website project called &#8220;<a title="A Night Story" href="http://test.davepcguy.com/livestory/test.html">A Night Story</a>&#8221; and made some tweaks. Ignore the story, it&#8217;s just a concept. If you hover over the word &#8220;city&#8221; in the text, you&#8217;ll see another textbox appear with more information about the word.<br />
<span id="more-777"></span><br />
The whole concept of the website is to create a story, a swift, easy-to-read story that contains more information than it seems.</p>
<div id="attachment_778" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/span1.png"><img class="size-medium wp-image-778" title="span1" src="http://www.davepcguy.com/wp-content/uploads/2009/10/span1-300x167.png" alt="Hover effect" width="300" height="167" /></a><p class="wp-caption-text">Hover effect</p></div>
<p>So, let me teach you how to create such a hover effect on any word in the text, and on an unlimited amount of words without much work</p>
<h1>The HTML</h1>
<p>First, we have to create an ideal HTML situation that will be easy to describe with CSS later on. First, pick the word, in my case &#8220;city&#8221; and then the text.</p>
<p>We&#8217;ll have to put the whole thing within a &#8220;span&#8221; and then create another &#8220;span&#8221; for the hover text like this:</p>
<pre class="brush: xml;">
&lt;span&gt;&lt;a href=&quot;terms/city.html&quot;&gt;city&lt;/a&gt;&lt;span&gt;the city was large, and dark. People droned on and walked aimlessly through the streets every day. The smog filtered through their lungs. No one could escape the industrialization that overtook and destroyed the greenery that had once been there, the darkness shrouded my moves. &lt;/span&gt;&lt;/span&gt;
</pre>
<p>If you don&#8217;t want to use the &lt;a&gt; tag, then use another tag that you can use as an &#8220;anchor&#8221;, ie so the browser knows its special, a good one to use could be the tag &lt;b&gt;, which will let people know that the bold text is important and hoverable. Otherwise, you can create ids for all these spans and that&#8217;s just too much work. You can try different variations of this formula and see how it works. This is what I did, and it worked out well <img src='http://www.davepcguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</p>
<h1>The CSS</h1>
<p>Let&#8217;s focus on the CSS. One thing, I want to do is change the word &#8220;city&#8221; so that it does not appear&#8230;like such a link. Let me show you how I customized the link so that it appears the way it does:</p>
<pre class="brush: css;">
a {
padding: 0px;
margin: 0px;
background-color: #FFFFFF;
}

a:link, a:visited
{
color: #0000CC;
text-decoration: none;
}

a:hover
{
background-color: #369;
color: #fff;
}
</pre>
<p>That creates a nice effect. The underline is gone, the tag has no special padding or a margin. I&#8217;ve also took the the liberty to make its background match the rest of the div (not necessary). Next I changed it so that the color does not change once clicked, but the color of the word will still be different than white. Once hovered, the word will change color and background as shown on my test page.</p>
<p>Let&#8217;s get down to disappearing! Believe it or not, this is so easy, you&#8217;ll be asking yourself why you hadn&#8217;t thought of it:</p>
<pre class="brush: css;">
span&gt;span{
display: none;
position: absolute;
width: 300px;
}
span:hover&gt;span {
display: block;
padding: 5px;
background-color: white;
border: 1px solid black;
}
</pre>
<p>First, I used a strange class: <strong>span&gt;span</strong> means, the span within another span will follow these properties. The text will not display, the position is absolute (so that it will cover other text once hovered over), and the width is nice 300px. You can change the width attribute, and mess around with the position if you wish to. I probably will in the final version.</p>
<p>Next, <strong>span:hover&gt;span</strong> is a pseudo weird class. The <strong>span:hover </strong>class basically is a class that takes effect only when you mouse over the original span. By adding <strong>&gt;span</strong>, we&#8217;ve created something genius. This class is a class that works only once the original span is moused over. Now, we&#8217;re using the <strong>display:block</strong> property to display the nice block of text. I used some padding and added a background color so that the other text won&#8217;t interfere. The border is there only for neatness.</p>
<p>And that&#8217;s it! With just these few steps you&#8217;ve created something that people use javascript for!</p>
<p><strong>Pros:</strong></p>
<p>The pros of using CSS:</p>
<ol>
<li>It is really easy to change the effects</li>
<li> You don&#8217;t have to learn javascript</li>
<li>It works even if the user has javascript disabled</li>
<li>It is faster than javascript because it requires no calculation or parsing</li>
</ol>
<p><strong>Cons:</strong></p>
<p>The Cons of using CSS for this particular effect:</p>
<ol>
<li>less maneuverability</li>
<li>less special effects</li>
<li>looks too simple for some websites</li>
</ol>
<p>With some experimenting and patience, you can create really beautiful drop-down textboxes with custom backgrounds. Well, the possibilities are endless! <img src='http://www.davepcguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="testing site" href="http://test.davepcguy.com/livestory/test.html">Again, go check out my testing site for a demo!</a></p>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;partner=sociable" title="Print"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox&amp;bodytext=Remember%20that%20trick%20to%20show%20a%20sub-menu%20using%20CSS%20in%20my%20older%20tutorial%3F%20Well%2C%20I%20had%20an%20idea%20for%20a%20project%20of%20mine%2C%20and%20with%20a%20little%20help%20from%20my%20dear%20friend%20Raphael.%20Last%20night%2C%20I%20launched%20my%20little%20website%20project%20called%20%22A%20Night%20Story%22%20and%20made%20som" title="Digg"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox&amp;notes=Remember%20that%20trick%20to%20show%20a%20sub-menu%20using%20CSS%20in%20my%20older%20tutorial%3F%20Well%2C%20I%20had%20an%20idea%20for%20a%20project%20of%20mine%2C%20and%20with%20a%20little%20help%20from%20my%20dear%20friend%20Raphael.%20Last%20night%2C%20I%20launched%20my%20little%20website%20project%20called%20%22A%20Night%20Story%22%20and%20made%20som" title="del.icio.us"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;t=CSS%20Trick%3A%20Disappearing%20Textbox" title="Facebook"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox&amp;annotation=Remember%20that%20trick%20to%20show%20a%20sub-menu%20using%20CSS%20in%20my%20older%20tutorial%3F%20Well%2C%20I%20had%20an%20idea%20for%20a%20project%20of%20mine%2C%20and%20with%20a%20little%20help%20from%20my%20dear%20friend%20Raphael.%20Last%20night%2C%20I%20launched%20my%20little%20website%20project%20called%20%22A%20Night%20Story%22%20and%20made%20som" title="Google Bookmarks"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox&amp;source=Dave+PC+Guy+Computers+and+Technology&amp;summary=Remember%20that%20trick%20to%20show%20a%20sub-menu%20using%20CSS%20in%20my%20older%20tutorial%3F%20Well%2C%20I%20had%20an%20idea%20for%20a%20project%20of%20mine%2C%20and%20with%20a%20little%20help%20from%20my%20dear%20friend%20Raphael.%20Last%20night%2C%20I%20launched%20my%20little%20website%20project%20called%20%22A%20Night%20Story%22%20and%20made%20som" title="LinkedIn"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox" title="Reddit"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;t=CSS%20Trick%3A%20Disappearing%20Textbox&amp;s=Remember%20that%20trick%20to%20show%20a%20sub-menu%20using%20CSS%20in%20my%20older%20tutorial%3F%20Well%2C%20I%20had%20an%20idea%20for%20a%20project%20of%20mine%2C%20and%20with%20a%20little%20help%20from%20my%20dear%20friend%20Raphael.%20Last%20night%2C%20I%20launched%20my%20little%20website%20project%20called%20%22A%20Night%20Story%22%20and%20made%20som" title="Tumblr"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=CSS%20Trick%3A%20Disappearing%20Textbox%20-%20http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F" title="Twitter"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=CSS%20Trick%3A%20Disappearing%20Textbox&amp;body=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F" title="email"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=CSS%20Trick%3A%20Disappearing%20Textbox&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F" title="Slashdot"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-trick-disappearing-textbox%2F&amp;title=CSS%20Trick%3A%20Disappearing%20Textbox" title="StumbleUpon"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davepcguy.com/archive/css-trick-disappearing-textbox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Custom E-mail Form</title>
		<link>http://www.davepcguy.com/archive/custom-e-mail-form/</link>
		<comments>http://www.davepcguy.com/archive/custom-e-mail-form/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 19:14:43 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[PHP and Scripting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[coupon]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web extras]]></category>

		<guid isPermaLink="false">http://www.davepcguy.com/?p=557</guid>
		<description><![CDATA[AH! So I have to create a custom e-mail sending form. He wants me to create a webform that will ask for a person&#8217;s name and e-mail address. Once those are input, an e-mail will be sent to the person&#8217;s e-mail account with a thank you message. Meanwhile, the website will reload with a custom]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;source=clrkmck&amp;style=normal&amp;service_api=clrkmck%3AR_a73f58a91ed3515157df75ab6c37730f&amp;hashtags=coupon,functions,mail,php,web+extras" height="61" width="50" /><br />
			</a>
		</div>
<p>AH! So I have to create a custom e-mail sending form. He wants me to create a webform that will ask for a person&#8217;s name and e-mail address. Once those are input, an e-mail will be sent to the person&#8217;s e-mail account with a thank you message. Meanwhile, the website will reload with a custom coupon that bears their name. I&#8217;ll need it printable so I&#8217;ll have to add a print button as well.<br />
Sounds simple enough, right?.. right?<br />
<span id="more-557"></span><br />
First off, go <a title="coupon tutorial" href="http://www.davepcguy.com/archive/coupon-design/">create a coupon</a>. After you&#8217;re done with that, we can start working. Make sure the &#8220;name&#8221; field is left out though, we&#8217;ll add that in later with some CSS. Originally, I wanted to send the coupon in the e-mail, forcing the customer to input the right e-mail address but I realized that most e-mail clients do not support CSS and especially not the &#8220;position: absolute;&#8221; property and value.<br />
<br />
<strong>Tip</strong>: I update the script periodically, and have numerous times while writing this tutorial. None of the scripts mentioned in this post are necessarily WRONG but at the bottom of the page is the current &#8220;release&#8221; that I&#8217;ve created. The images may not correspond directly with the code they represent.</p>
<h1>Setup</h1>
<p>Alright, here&#8217;s what you&#8217;ll need to do. You need to download MIME (MultiplePurpose Internet Mail Extensions), which is an e-mail extension for php that allows you to send HTML e-mails. If your site operates under c-panel, like mine is, then just scroll down, find the PHP extension icon. Search for &#8220;MIME&#8221; and install the packages. If you need to install them manually, search through google &#8220;Installing MIME on&#8221; your OS. I cannot really help you out more than that because I am not an expert on PHP extensions. There are multiple guides online though that WILL help you out.</p>
<div id="attachment_632" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/mail1.png"><img class="size-medium wp-image-632" title="mail1" src="http://www.davepcguy.com/wp-content/uploads/2009/10/mail1-300x105.png" alt="installing MIME" width="300" height="105" /></a><p class="wp-caption-text">installing MIME</p></div>
<div id="attachment_633" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/mail2.png"><img class="size-medium wp-image-633" title="mail2" src="http://www.davepcguy.com/wp-content/uploads/2009/10/mail2-300x54.png" alt="Press Install" width="300" height="54" /></a><p class="wp-caption-text">Press Install</p></div>
<p>Once you press install, the package will automatically install. It may ask if it can install other dependent packages, simply OK it.</p>
<h1>Basic Form</h1>
<div id="attachment_634" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/mail3.png"><img class="size-medium wp-image-634" title="mail3" src="http://www.davepcguy.com/wp-content/uploads/2009/10/mail3-300x185.png" alt="Modified Mail Form" width="300" height="185" /></a><p class="wp-caption-text">Modified Mail Form</p></div>
<p>Let&#8217;s start scripting. I advise you to create a mail.php form that you can &#8220;include ()&#8221; or &#8220;require()&#8221; into your existing website. It&#8217;s much neater this way and the PHP won&#8217;t get in the way of your layout. Here&#8217;s the basic form I created for our purposes:</p>
<pre class="brush: xml;">&lt;form action=&quot;&lt;?php $_SERVER['PHP_SELF'];?&gt;&quot; method=&quot;post&quot;&gt;
Name:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;41&quot; /&gt;&lt;br /&gt;
E-mail address:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;email&quot; maxlength=&quot;40&quot; /&gt;&lt;br /&gt;
Message (&lt;i&gt;optional&lt;/i&gt;):&lt;br /&gt; &lt;textarea name=&quot;optmessage&quot; cols=&quot;30&quot; rows&quot;10&quot; maxlength&quot;140&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;save&quot; /&gt;
&lt;/form&gt;</pre>
<p>I used the &#8220;$_SERVER['PHP_SELF']&#8221; variable for the action so that we won&#8217;t have to create yet another script page to use the information. The &#8220;name&#8221; field will translate to $_POST['name'], the&#8221;e-mail address&#8221; into $_POST['email'], and the optional &#8220;message&#8221; into $_POST['optmessage']. There is nothing much more to it. I used maxlength for the name 41 characters because my full fictional name, &#8220;Captain Soren William Alexander Janus VI.&#8221;, is exactly 41 characters long .  40 characters for the e-mail seems sufficient enough as well. 140 character message is the same as twitter&#8217;s max tweet. There is nothing much else to this.</p>
<h1>Are you feeling &#8220;Loopy&#8221;?</h1>
<p>Let&#8217;s move on. We need to create a loop that will ensure our data has been entered and that we are not dealing with a blank form. The purpose of this basic loop is to show the initial form for the user to submit the data to, reload the form if any errors were made during submission (ie invalid entries), and send the email in the end.</p>
<pre class="brush: php;">
&lt;?php
if (!isset($_POST['submit']) { ?&gt;

Form goes here

&lt;?php } elseif (empty($_POST['email']) || empty($_POST['name']) ||
(isEmailAddress($_POST['email']) == 0) || (trim($_POST['email']) == '')
|| (trim($_POST['name']) == '')) {
?&gt;

Something entered was wrong, please re-enter your information:
form goes here.

&lt;?php }
else {
store variables, send e-mail, and show a new page with a coupon }
?&gt;
</pre>
<p>Confused? Don&#8217;t be. The beginning tells us if the form has been previously submitted, if not, the form will load. The second part after &#8220;elseif&#8221; checks if all the data entered is correct. After all the conditions have been met, we progress to the last &#8220;else&#8221; which will execute the mail sending.</p>
<h1>&#8220;Validate This!&#8221;</h1>
<p>If you look above, you&#8217;ll see a strange function called &#8220;isEmailAddress&#8221;. I set this function up using a script I <a title="validation scripts" href="http://devzone.zend.com/node/view/id/662">found</a>. Here is the function:</p>
<pre class="brush: php;">
function isEmailAddress($value) {
        return eregi('^([a-z0-9])+([\.a-z0-9_-])*@([a-z0-9_-])+(\.[a-z0-9_-]+)*\.([a-z]{2,6})$', $value);
    }
	</pre>
<p>It basically checks if the e-mail is in the correct format. It also makes sure that only a single e-mail address has been entered and that it does not contain any malicious code.</p>
<p><strong>Tip</strong>: If you wish to add database support to this script, you&#8217;ll have to use a validation function for the name and message as well!</p>
<p>Next part of validation are the &#8220;empty()&#8221; and &#8220;trim()&#8221; functions. &#8220;Empty()&#8221; is self-explanatory. You entered the variable name and the function will check if it is empty or not. If it is, the function returns TRUE. &#8220;Trim()&#8221; works similarly except here it takes out all the extra spaces and such. If it equals &#8216; &#8216; or an empty space, then it will return TRUE. The &#8220;elseif&#8221; statement is setup so that it checks the e-mail and name value.</p>
<p><strong>Tip: </strong>If you have some time on your hand you can create a function that will check for each of these statements like: function CheckValue ($var) { if (empty($var) {return TRUE;} if (trim($var) == &#8216; &#8216;) { return TRUE;} }</p>
<h1>Second Form</h1>
<div id="attachment_635" class="wp-caption aligncenter" style="width: 302px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/mail4.png"><img class="size-full wp-image-635" title="mail4" src="http://www.davepcguy.com/wp-content/uploads/2009/10/mail4.png" alt="Incorrect entry" width="292" height="265" /></a><p class="wp-caption-text">Incorrect entry</p></div>
<p>You have a choice here. Under &#8220;elseif ()&#8221;, you can create new &#8220;if&#8221; statements and inform the user of what exactly is wrong. For example if the name is empty, you can create an if statement like this:</p>
<pre class="brush: php;">
if (empty($_POST['name'] || trim($_POST['name']) == ' ') { ?&gt;
 echo &quot;You left the name field empty&quot;;
&lt;?php } ?&gt;
</pre>
<p>I like to keep the user in the shadows and put all of the validation together using the || which means &#8220;or&#8221; and the same original form will show up with the message &#8220;Error: Please enter a valid e-mail address and your name&#8221;. Add the following form under &#8220;elseif()&#8221; between the php tags:</p>
<pre class="brush: xml;">
Error: Please enter a valid e-mail address and your name

&lt;form action=&quot;&lt;?php $_SERVER['PHP_SELF'];?&gt;&quot; method=&quot;post&quot;&gt;
Name:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;41&quot; /&gt;&lt;br /&gt;
E-mail address:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;email&quot; maxlength=&quot;40&quot; /&gt;&lt;br /&gt;
Message (&lt;i&gt;optional&lt;/i&gt;):&lt;br /&gt; &lt;textarea name=&quot;optmessage&quot; cols=&quot;30&quot; rows&quot;10&quot; maxlength&quot;140&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;
</pre>
<p>It&#8217;s the same form with a little message on top.</p>
<h1>Everything &#8220;Else&#8221;</h1>
<p>So all the variables go through, the script is validated. What now then? Now we&#8217;ll send the e-mail and refresh the site. I am using e-mails for a good reason. Whenever a user asks for a coupon, I&#8217;ll have a copy of their name and their e-mail address for future reference. I COULD use a database system but I&#8217;m a lazy person. I&#8217;ll point you in the right direction if you wish to do that though. Instead, let&#8217;s focus on what I already have done.</p>
<p>We should set up our variables first, writing out $_POST['email'] is quite a hassle. Plus, we have to set up the e-mail variables as well. Also note that this is in the last else {} section:</p>
<pre class="brush: php;">
//variables

$to = $_POST['email'];
$subject = &quot;Coupon from the Chiropractors&quot;;
$name = $_POST['name'];
$optmessage= $_POST['optmessage'];
$opt = wordwrap ($optmessage, 70);
</pre>
<p>The mail function works like this:</p>
<blockquote><p>mail (to, subject, message, headers)</p></blockquote>
<p>So we set up the &#8220;$to&#8221; variable which we will direct to the e-mail. We&#8217;ve also set up the subject of the e-mail and put $_POST['name'] into the $name variable for later use. Next, I transferred the optional message into $optmessage variable which I then word-wrapped into $opt. You have to word-wrap your e-mail message and the longest line can only have 70 characters. Using the &#8220;wordwrap ()&#8221; function and the parameter &#8220;70&#8243;, we&#8217;ve accomplished that. Let&#8217;s write the message:</p>
<pre class="brush: php;">
$message = &quot;&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html; charset=utf-8\&quot; /&gt;
&lt;title&gt;Chiropractic&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;p&gt; Dear $name,&lt;br /&gt;
Thank you for visiting us at our&lt;a href=\&quot;http://www.davepcguy.com\&quot;&gt;Website&lt;/a&gt;.
&lt;p&gt; Please print out your coupon and present it on your next visit. Thank you, and we hope to see you soon!&lt;/p&gt;
&lt;p style=\&quot;margin-left: 50px\&quot;&gt; Sincerely, Alexander &lt;/p&gt;
&lt;p&gt;optional message:&lt;br /&gt;
$opt&lt;/p&gt;
&lt;p&gt;
Your e-mail: $to &lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;&quot;;
</pre>
<p>Note that e-mail clients have different <a title="CSS support for different e-mail clients" href="http://www.campaignmonitor.com/css/">support</a> of HTML and CSS. Don&#8217;t include any XHTML, that&#8217;s way too complicated. This is the reason why I did not put the coupon into the e-mail. Most e-mail clients do not support the &#8220;position: absolute&#8221;. Alright, let&#8217;s setup our header variable. With headers, you can define who the e-mail is from, where to reply to the e-mail, send different copies, and most importantly, use MIME.</p>
<pre class="brush: php;">
 //header information
$from = &quot;no-reply@davepcguy.com&quot;;
$headers = &quot;From: $from&quot; . &quot;\r\n&quot;;
$headers .= 'MIME-Version: 1.5.2' . &quot;\r\n&quot;;
$headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;
$headers .= &quot;BCC: reply@davepcguy.com&quot; . &quot;\r\n&quot;;
</pre>
<p>I used an e-mail address I set up through c-panel. Set it up the same way you set up any other e-mail account. And you won&#8217;t even have to include the password in your script. Let&#8217;s break down the header.</p>
<p>The first header establishes from where the e-mail will be sent. Always break the lines when setting up the header variable using &#8220;\r\n&#8221;. Next, set up your MIME and its version. The newest one should be 1.5.2 but check your version under the PHP addons/modules in your c-panel. If you can&#8217;t make it work, use &#8220;MIME-Version: 1.0&#8243;. Next, set the content-type. Just copy the above, there should be no other alternative. The script will also send a BCC (Blind Carbon Copy) of every e-mail to my own e-mail address so that I can keep records. Let&#8217;s send it then!</p>
<pre class="brush: php;">
//functions
$mail_sent= mail(&quot;$to&quot;, $subject, $message, $headers);
</pre>
<p>All that work and it&#8217;s summed up in one single line, amazing, eh?</p>
<h1>The Script After</h1>
<p>Hmm&#8230;I think I should give the user the coupon finally, don&#8217;t you think? They&#8217;ve done SO much work. Well, let me set up the message then:</p>
<pre class="brush: php;">
//announcement
$sent= &quot;
&lt;p&gt; Dear $name,&lt;br /&gt;
Thank you for visiting us at &lt;a href=\&quot;http://www.davepcguy.com\&quot;&gt;Website&lt;/a&gt;
Here is your coupon&lt;/p&gt;
&lt;div align=\&quot;center\&quot; style=\&quot;padding=\&quot;50px\&quot;&gt;
&lt;div style=\&quot;position: absolute; margin: 75px 120px 10px 50px; font-size: 30px; border-bottom: 2px solid black; width: 250px\&quot;&gt; $name &lt;/div&gt;
&lt;img src=\&quot;coupon2.png\&quot; width=\&quot;436\&quot; height=\&quot;292\&quot; /&gt;&lt;/div&gt;
&lt;p&gt; Please print this coupon out and present it on your next visit. Thank you, and we hope to see you soon!&lt;/p&gt;
&lt;p style=\&quot;margin-left: 50px\&quot;&gt; Sincerely, Alexander &lt;/p&gt;
&lt;p&gt; P.S. please print out your coupon immediately or save this page because it will not be available after you close out.
If you're having any trouble, please contact our &lt;a href=\&quot;mailto:alexander@davepcguy.com\&quot;&gt;webmaster&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Optional Message: &lt;br /&gt;
$opt
&lt;/p&gt;
&quot;;
echo $mail_sent ? $sent : &quot;Mail failed&quot;;
echo $sent;
}
?&gt;
</pre>
<p>Haha, I know, it looks complicated, doesn&#8217;t it? Well not really, the &#8220;$sent&#8221; just sets up a variable with the html code I plan to use in my webpage. Beware, you&#8217;ll have to adjust this according to your own webpage. the echo $mail_sent ? $sent: &#8220;Mail failed&#8221;; is a short hand for an if loop &#8221; if ($mail_sent) {$sent} else { &#8220;Mail Failed&#8221;};&#8221; then the $sent variable will echo out.</p>
<div id="attachment_636" class="wp-caption aligncenter" style="width: 280px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/mail5.png"><img class="size-medium wp-image-636" title="mail5" src="http://www.davepcguy.com/wp-content/uploads/2009/10/mail5-270x300.png" alt="final page" width="270" height="300" /></a><p class="wp-caption-text">final page</p></div>
<h1>Extras</h1>
<ul>
<li>database support</li>
<li>print</li>
<li>extra validation</li>
</ul>
<p>This is how I finished out my script. I don&#8217;t plan on doing too much to it other than making it printable. I&#8217;m thinking about making a pop-up window that will display all of that information. Let&#8217;s review some of the extras you can add.</p>
<p><strong>Database Support </strong>First, you can add database support. Simply make a new database in MySQL (using PHPmyAdmin) and set up two columns, one for name, and the other for name. Set up the table or use this SQL command if you can, creating the database might be tricky, but you should be able to use the &#8220;CREATE TABLE&#8221; part. If you can&#8217;t, just set it up manually using the values shown:</p>
<pre>CREATE DATABASE coupondb;

CREATE TABLE `coupons` (
    `id` int(11) NOT NULL auto_increment,
    `name` varchar(255) NOT NULL default '',
    `email` varchar(255) NOT NULL default '',
    PRIMARY KEY  (`id`)
) TYPE=MyISAM;</pre>
<p>You can probably make a third column for an order (1., 2., 3.) or for the date and time. Add this at the beginning of the &#8220;else{}&#8221; :</p>
<pre class="brush: php;">
//MySQL variable
$host = &quot;localhost&quot;;
$user = &quot;user&quot;;
$pass = &quot;password&quot;;
$db = &quot;coupondb&quot;;

//connect
$connection = mysql_connect($host, $user, $pass) or die (&quot;Unable to connect!&quot;);

// select database
mysql_select_db($db) or die (&quot;Unable to select database!&quot;);
</pre>
<p>First, set up the host variable ie, where the database is. I&#8217;ll trust my WordPress senses and leave that with localhost. You&#8217;ll have to create a new username and password as well as a database manually using c-panel or a different site manager your hosting provides you. Input the user and password. Change the &#8220;die&#8221; variable to something like &#8220;internal server error&#8221; or something, this is just for educational purposes. I got it off <a title="Database Tutorial Zend" href="http://devzone.zend.com/node/view/id/641">Zend Dev Zone </a>again. Make sure you put this BEFORE the e-mail sending (ie the mail() function) because it&#8217;s senseless to send the e-mail but not make a database entry. Here&#8217;s the basic query:</p>
<pre class="brush: php;">
 // create query
    $query = &quot;INSERT INTO coupons (name, email) VALUES ('$name', '$to')&quot;;

    // execute query
    $result = mysql_query($query) or die (&quot;Error in query: $query. &quot;.mysql_error());

    // close connection
    mysql_close($connection);
</pre>
<p>And there you go, database support added. Check out my full script on the bottom for the full implementation with the duplicate entries check as well as other features.</p>
<p><strong>Print </strong><img src="file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.png" alt="" />Let&#8217;s check out how to print all this stuff out. I found a neat piece of JavaScript that can accomplish this. It&#8217;s a bit tricky and I still can&#8217;t get it to show the best results but, it seems to work well nonetheless. You can find it <a title="javascript print code" href="http://personalweb.about.com/od/copypastejavascripts/a/404_3scripts_3.htm">here</a>. Add the header part into the real header where you&#8217;ll use this mail.php script. Then, modify the $sent variable:</p>
<pre class="brush: php;">
$sent= &quot;&lt;div id=\&quot;printReady\&quot;&gt;
&lt;div style=\&quot; width: 457px; background: white; text-align: center\&quot;&gt;
&lt;p&gt; Dear $name,&lt;br /&gt;
Thank you for visiting us at &lt;a href=\&quot;http://www.davepcguy.com\&quot;&gt;Website&lt;/a&gt;
Here is your coupon&lt;/p&gt;
&lt;div align=\&quot;center\&quot; style=\&quot;padding=\&quot;50px\&quot;&gt;
&lt;div style=\&quot;position: absolute; margin: 75px 120px 10px 50px; font-size: 30px; border-bottom: 2px solid black; width: 250px\&quot;&gt; $name &lt;/div&gt;
&lt;img src=\&quot;coupon2.png\&quot; width=\&quot;436\&quot; height=\&quot;292\&quot; /&gt;&lt;/div&gt;
&lt;p&gt; Please print this coupon out and present it on your next visit. Thank you, and we hope to see you soon!&lt;/p&gt;
&lt;p style=\&quot;margin-left: 50px\&quot;&gt; Sincerely, Alexander &lt;/p&gt;
&lt;p&gt; P.S. please print out your coupon immediately or save this page because it will not be available after you close out.
If you're having any trouble, please contact our &lt;a href=\&quot;mailto:alexander@davepcguy.com\&quot;&gt;webmaster&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Optional Message: &lt;br /&gt;
$opt
&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;form id=\&quot;printMe\&quot; name=\&quot;printMe\&quot;&gt;  &lt;input type=\&quot;button\&quot; name=\&quot;printMe\&quot; onClick=\&quot;printSpecial()\&quot; value=\&quot;Print this Page\&quot;&gt; &lt;/form&gt;
&quot;;</pre>
<p>Change the width to suit your needs. And I am completely aware there is a million different divs just in this script (you should see the pages I code, million more divs) but they are mostly mandatory. You can switch the &#8220;div&#8221; around the &#8220;$name&#8221; variable to &lt;span&gt;. You&#8217;ll have to spend some time adjusting this, the width of the page, the margin, as well as the different positions to suit your needs. It worked for me almost perfectly <img src='http://www.davepcguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Extra Validation</strong> Okay, so if you want to use a database with this form, you&#8217;ll need some extra validation as a precaution against SQL injection. We&#8217;ve already validated the e-mail address and I won&#8217;t be validating the optional message just yet. So let&#8217;s validate the name. I used a function from the same script I cited when I used the e-mail validation function:</p>
<pre class="brush: php;">
// check whether input is alphabetic
    function isAlpha($value) {
        return preg_match('/^[a-zA-Z]+$/', $value);
    }
</pre>
<p>Add this function to the beginning of the document and add another || to the elseif () {} part of the loop saying &#8220;!isAlpha($_POST['name'])&#8221;. Also, warn the user that they can use only letters for the name and no periods or other characters nor numbers. The optional message SHOULD be validated but I am not certain how to go about it just yet. I&#8217;d like to let the user be able to use some personalized html code so I won&#8217;t look into it too much. Also, I am not storing that message so I don&#8217;t have to fear an SQL attack.</p>
<h1>Conclusion</h1>
<p>I hope this shed some light on how you&#8217;d create an e-mail form as well as how to use the mail() function. As you can see, the possibilities with PHP are endless. I&#8217;d like to also inform you that it took me several hours to write this script with numerous trial&amp;error runs. I&#8217;m self-taught, and mostly used the <a title="PHP manual" href="http://php.net/manual/en/index.php">PHP manual</a> as a reference. I hope this helped and that you have fun trying this out for yourselves!</p>
<p>I&#8217;d appreciate any comments regarding the security of this script as well as usability. I, myself, am about to launch the script on one of my pages so I&#8217;d like to know what people have to say about it.</p>
<p>Final Script with all its features added: Note that I will update this part of the post as necessary when I find bugs and optimize it.</p>
<pre class="brush: php;">

&lt;?php
//functions
/* PHP script written by Alexander Janus
contact: alexander@davepcguy.com
blog: http://www.davepcguy.com
if you want to use this script, include this header
*/
function isEmailAddress($value) {
 return eregi('^([a-z0-9])+([\.a-z0-9_-])*@([a-z0-9_-])+(\.[a-z0-9_-]+)*\.([a-z]{2,6})$', $value);
 }
// check whether input is alphabetic
function isAlpha($value) {
 return preg_match('/^[a-zA-Z]+$/', $value);
 }

function name ($var) {
 if (!isset($var)){
 return TRUE;
 }
 if (empty($var)){
 return TRUE;
 }
 if (trim($var) == ''){
 return TRUE;
 }
 if (isAlpha($var) == 0){
 return TRUE;
 }
}
function email ($var) {
 if (!isset($var)){
 return TRUE;
 }
 if (empty($var)){
 return TRUE;
 }
 if (trim($var) == ''){
 return TRUE;
 }
 if (isEmailAddress($var) == 0){
 return TRUE;
 }
}

//loop
if(!isset($_POST['submit'])){

 ?&gt;
Please enter your name and e-mail address. The name field supports only alphabetic characters (letters).
&lt;form action=&quot;&lt;?php $_SERVER['PHP_SELF'];?&gt;&quot; method=&quot;post&quot;&gt;
Name:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;41&quot; /&gt;&lt;br /&gt;
E-mail address:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;email&quot; maxlength=&quot;40&quot; /&gt;&lt;br /&gt;
Message (&lt;i&gt;optional&lt;/i&gt;):&lt;br /&gt; &lt;textarea name=&quot;optmessage&quot; cols=&quot;30&quot; rows&quot;10&quot; maxlength&quot;140&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;

&lt;?php
}

elseif (name($_POST['name']) || email($_POST['email'])) {
 if (name($_POST['name'])) {
 echo &quot;Please enter a valid name. Periods, commas, or other non-alpha characters are not supported.&lt;br/&gt;&quot;;
 }
 if (email($_POST['email'])){
 echo &quot;Please enter a valid e-mail address in this format: account@email.com. &lt;br /&gt;&quot;;}
?&gt;

&lt;form action=&quot;&lt;?php $_SERVER['PHP_SELF'];?&gt;&quot; method=&quot;post&quot;&gt;
Name:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; maxlength=&quot;41&quot; /&gt;&lt;br /&gt;
E-mail address:&lt;br /&gt; &lt;input type=&quot;text&quot; name=&quot;email&quot; maxlength=&quot;40&quot; /&gt;&lt;br /&gt;
Message (&lt;i&gt;optional&lt;/i&gt;):&lt;br /&gt; &lt;textarea name=&quot;optmessage&quot; cols=&quot;30&quot; rows&quot;10&quot; maxlength&quot;140&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;
 &lt;?php

}
else {
//Database connection
//MySQL variable
$host = &quot;localhost&quot;;
$user = &quot;user&quot;;
$pass = &quot;password&quot;;
$db = &quot;coupon&quot;;

//connect
$connection = mysql_connect($host, $user, $pass) or die (&quot;Unable to connect!&quot;);

// select database
mysql_select_db($db) or die (&quot;Unable to select database!&quot;);

//variables

$to = $_POST['email'];
$subject = &quot;Coupon from the Chiropractors&quot;;
$name = $_POST['name'];
$optmessage= $_POST['optmessage'];
$opt = wordwrap ($optmessage, 70);
$sent= &quot;&lt;div id=\&quot;printReady\&quot;&gt;
&lt;div style=\&quot; width: 457px; background: white; text-align: center;\&quot;&gt;
&lt;p&gt; Dear $name,&lt;br /&gt;
Thank you for visiting us at &lt;a href=\&quot;http://www.davepcguy.com\&quot;&gt;Website&lt;/a&gt;
Here is your coupon&lt;/p&gt;
&lt;div align=\&quot;center\&quot; style=\&quot;padding=\&quot;50px\&quot;&gt;
&lt;span style=\&quot;position: absolute; margin: 75px 120px 10px 50px; font-size: 30px; border-bottom: 2px solid black; width: 250px\&quot;&gt; $name &lt;/span&gt;
&lt;img src=\&quot;coupon2.png\&quot; width=\&quot;436\&quot; height=\&quot;292\&quot; /&gt;&lt;/div&gt;
&lt;p&gt; Please print this coupon out and present it on your next visit. Thank you, and we hope to see you soon!&lt;/p&gt;
&lt;p style=\&quot;margin-left: 50px\&quot;&gt; Sincerely, Alexander &lt;/p&gt;
&lt;p&gt; P.S. please print out your coupon immediately or save this page because it will not be available after you close out.
If you're having any trouble, please contact our &lt;a href=\&quot;mailto:alexander@davepcguy.com\&quot;&gt;webmaster&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Optional Message: &lt;br /&gt;
$opt
&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;form id=\&quot;printMe\&quot; name=\&quot;printMe\&quot;&gt;  &lt;input type=\&quot;button\&quot; name=\&quot;printMe\&quot; onClick=\&quot;printSpecial()\&quot; value=\&quot;Print this Page\&quot;&gt; &lt;/form&gt;
&quot;;

//MYSQL QUERY
//check for duplicates
$duplicate = mysql_query(&quot;SELECT * FROM coupons where email='$to'&quot;);
$affected_rows = mysql_num_rows($duplicate);
if($affected_rows &gt;= 1)
{
echo $sent;
echo &quot;&lt;span style=\&quot;color: red;\&quot;&gt;Note: If you have already entered your e-mail address before, you will not get another e-mail message. &lt;br /&gt;
This is to prevent spamming.&lt;/span&gt;&quot;;
die('');
}
else {
// create query
 $query = &quot;INSERT INTO coupons (name, email) VALUES ('$name', '$to')&quot;;

 // execute query
 $result = mysql_query($query) or die (&quot;Error in query: $query. &quot;.mysql_error());

 // close connection
 mysql_close($connection);

}

//html message
$message = &quot;&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html; charset=utf-8\&quot; /&gt;
&lt;title&gt;Chiropractic&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;p&gt; Dear $name,&lt;br /&gt;
Thank you for visiting us at our&lt;a href=\&quot;http://www.davepcguy.com\&quot;&gt;Website&lt;/a&gt;
&lt;p&gt; Please print out your coupon and present it on your next visit. Thank you, and we hope to see you soon!&lt;/p&gt;
&lt;p style=\&quot;margin-left: 50px\&quot;&gt; Sincerely, Alexander &lt;/p&gt;
&lt;p&gt;optional message:&lt;br /&gt;
$opt&lt;/p&gt;
&lt;p&gt;
Your e-mail: $to &lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;&quot;;

 //header information
$from = &quot;no-reply@davepcguy.com&quot;;
$headers = &quot;From: $from&quot; . &quot;\r\n&quot;;
$headers .= 'MIME-Version: 1.5.2' . &quot;\r\n&quot;;
$headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;
$headers .= &quot;BCC: reply@davepcguy.com&quot; . &quot;\r\n&quot;;

//functions
$mail_sent= mail(&quot;$to&quot;, $subject, $message, $headers);

//announcement

echo $mail_sent ? $sent : &quot;Mail failed&quot;;
echo $sent;
}

?&gt;
</pre>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;partner=sociable" title="Print"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form&amp;bodytext=AH%21%20So%20I%20have%20to%20create%20a%20custom%20e-mail%20sending%20form.%20He%20wants%20me%20to%20create%20a%20webform%20that%20will%20ask%20for%20a%20person%27s%20name%20and%20e-mail%20address.%20Once%20those%20are%20input%2C%20an%20e-mail%20will%20be%20sent%20to%20the%20person%27s%20e-mail%20account%20with%20a%20thank%20you%20message.%20Meanwhil" title="Digg"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form&amp;notes=AH%21%20So%20I%20have%20to%20create%20a%20custom%20e-mail%20sending%20form.%20He%20wants%20me%20to%20create%20a%20webform%20that%20will%20ask%20for%20a%20person%27s%20name%20and%20e-mail%20address.%20Once%20those%20are%20input%2C%20an%20e-mail%20will%20be%20sent%20to%20the%20person%27s%20e-mail%20account%20with%20a%20thank%20you%20message.%20Meanwhil" title="del.icio.us"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;t=Custom%20E-mail%20Form" title="Facebook"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form&amp;annotation=AH%21%20So%20I%20have%20to%20create%20a%20custom%20e-mail%20sending%20form.%20He%20wants%20me%20to%20create%20a%20webform%20that%20will%20ask%20for%20a%20person%27s%20name%20and%20e-mail%20address.%20Once%20those%20are%20input%2C%20an%20e-mail%20will%20be%20sent%20to%20the%20person%27s%20e-mail%20account%20with%20a%20thank%20you%20message.%20Meanwhil" title="Google Bookmarks"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form&amp;source=Dave+PC+Guy+Computers+and+Technology&amp;summary=AH%21%20So%20I%20have%20to%20create%20a%20custom%20e-mail%20sending%20form.%20He%20wants%20me%20to%20create%20a%20webform%20that%20will%20ask%20for%20a%20person%27s%20name%20and%20e-mail%20address.%20Once%20those%20are%20input%2C%20an%20e-mail%20will%20be%20sent%20to%20the%20person%27s%20e-mail%20account%20with%20a%20thank%20you%20message.%20Meanwhil" title="LinkedIn"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form" title="Reddit"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;t=Custom%20E-mail%20Form&amp;s=AH%21%20So%20I%20have%20to%20create%20a%20custom%20e-mail%20sending%20form.%20He%20wants%20me%20to%20create%20a%20webform%20that%20will%20ask%20for%20a%20person%27s%20name%20and%20e-mail%20address.%20Once%20those%20are%20input%2C%20an%20e-mail%20will%20be%20sent%20to%20the%20person%27s%20e-mail%20account%20with%20a%20thank%20you%20message.%20Meanwhil" title="Tumblr"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Custom%20E-mail%20Form%20-%20http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F" title="Twitter"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Custom%20E-mail%20Form&amp;body=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F" title="email"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Custom%20E-mail%20Form&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F" title="Slashdot"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcustom-e-mail-form%2F&amp;title=Custom%20E-mail%20Form" title="StumbleUpon"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davepcguy.com/archive/custom-e-mail-form/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
