<?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>Matt Varone &#187; Web Development</title> <atom:link href="http://www.mattvarone.com/category/web-design/feed/" rel="self" type="application/rss+xml" /><link>http://www.mattvarone.com</link> <description>Creative Developer</description> <lastBuildDate>Wed, 21 Dec 2011 18:44:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Back In White</title><link>http://www.mattvarone.com/web-design/back-in-white/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=back-in-white</link> <comments>http://www.mattvarone.com/web-design/back-in-white/#comments</comments> <pubDate>Thu, 28 Jul 2011 15:34:19 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=1425</guid> <description><![CDATA[New revamp of this site. I wanted it to be &#8230; <a
href="http://www.mattvarone.com/web-design/back-in-white/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/back-in-white/">Back In White</a></p> ]]></description> <content:encoded><![CDATA[<p>New revamp of this site. I wanted it to be something simple and minimalist. The ultimate force behind this change is to help me write more so I&#8217;m hoping this works :)</p><p>Content is king as they say. I got rid of all the trendy buttons and overdone details. Most importantly I took some time to re-structure the menu and pages hoping to make it a little easier to navigate.</p><p>To celebrate I&#8217;m releasing <a
href="http://www.mattvarone.com/featured-content/shortcodes-pro/" title="Shortcodes Pro Plugin for WordPress">Shortcodes Pro</a> on the <a
href="http://wordpress.org/extend/plugins/shortcodes-pro/">WordPress repository</a>.</p><p>Thanks for stopping by!</p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/back-in-white/">Back In White</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/back-in-white/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Install WordPress from the OSX Terminal</title><link>http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-wordpress-from-the-osx-terminal</link> <comments>http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/#comments</comments> <pubDate>Fri, 15 Jul 2011 14:37:47 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Helpers]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[Tip]]></category> <category><![CDATA[Workflow]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=1257</guid> <description><![CDATA[This little snippet comes handy to install the latest version &#8230; <a
href="http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/">Install WordPress from the OSX Terminal</a></p> ]]></description> <content:encoded><![CDATA[<p>This little snippet comes handy to install the latest version of WordPress quickly from the terminal. Drop the function on your <code>/Username/.bash_profile</code> and then simply call <code>wp_install</code> from the directory you want to install it.</p><pre class="brush: php; title: ; notranslate">
wp_install() {
        latest=&quot;http://wordpress.org/latest.zip&quot;
        curl -O $latest
        unzip latest.zip
        rm -rf __MACOSX latest.zip
        cp -rf ./wordpress/* ./
        rm -rf ./wordpress/
        mkdir ./wp-content/uploads/
        mv wp-config-sample.php wp-config.php
        touch .htaccess
        mate wp-config.php
        open https://api.wordpress.org/secret-key/1.1/salt/
}
# Note: If you are not a TextMate owner, change the line:
# mate wp-config.php
# to
# vi wp-config.php
</pre><p
class="post-box">Feel free to <a
title="Fork it at GitHub" href="https://github.com/sksmatt/Install-WP-from-Terminal">fork</a> it at GitHub.</p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/">Install WordPress from the OSX Terminal</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/install-wordpress-from-the-osx-terminal/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Fresh UI Elements</title><link>http://www.mattvarone.com/web-design/fresh-ui-elements-library/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fresh-ui-elements-library</link> <comments>http://www.mattvarone.com/web-design/fresh-ui-elements-library/#comments</comments> <pubDate>Fri, 28 Jan 2011 00:10:39 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Forms]]></category> <category><![CDATA[Interface Design]]></category> <category><![CDATA[Layout]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[Workflow]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=911</guid> <description><![CDATA[Released a fresh and modern set of web elements. It &#8230; <a
href="http://www.mattvarone.com/web-design/fresh-ui-elements-library/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/fresh-ui-elements-library/">Fresh UI Elements</a></p> ]]></description> <content:encoded><![CDATA[<p>Released a fresh and modern set of web elements. It comes with a handful of items you can use for free on any project. It&#8217;s very easy to add more colors too. You can get the Fully layered PSD file with all editable elements below.</p><p><img
alt="" src="http://www.mattvarone.com/wp-content/uploads/2011/07/3form.jpg" title="form" class="aligncenter" width="520" height="500" /></p><p
class="post-box">Download <a
href='http://www.mattvarone.com/wp-content/uploads/2011/01/fresh-ui-elements.zip'>Fresh UI Elements</a></p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/fresh-ui-elements-library/">Fresh UI Elements</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/fresh-ui-elements-library/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>CSS3-only Buttons Library</title><link>http://www.mattvarone.com/web-design/css3-buttons-library/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css3-buttons-library</link> <comments>http://www.mattvarone.com/web-design/css3-buttons-library/#comments</comments> <pubDate>Thu, 16 Dec 2010 13:09:11 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[Helpers]]></category> <category><![CDATA[Stylesheet]]></category> <category><![CDATA[Templates]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=883</guid> <description><![CDATA[This is a little library to create nice buttons for &#8230; <a
href="http://www.mattvarone.com/web-design/css3-buttons-library/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/css3-buttons-library/">CSS3-only Buttons Library</a></p> ]]></description> <content:encoded><![CDATA[<p>This is a little library to create nice buttons for modern browsers in a faster way. No license attached, use for whatever you like. Thanks!</p><p><img
src="http://www.mattvarone.com/wp-content/uploads/2010/12/css3buttonsdemo1.png" alt="" title="css3buttonsdemo" width="520" height="205" class="aligncenter size-full wp-image-1456" /></p><div
class="post-box">CSS3 Buttons Library: <a
href="http://lab.mattvarone.com/demos/css3buttons/">View the demo</a> <a
href="http://lab.mattvarone.com/demos/css3buttons/css3buttons.zip">Download</a></div><p><span
id="more-883"></span></p><h3>How It Works</h3><p>The library works by using custom defined classes on your HTML elements. For this classes to work link the <strong>buttons.css</strong> file from the head of your HTML document.</p><pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;/&gt;
&lt;title&gt;Your Website&lt;/title&gt;
&lt;!-- Buttons Library CSS --&gt;
&lt;link rel=&quot;stylesheet&quot; media=&quot;all&quot; href=&quot;buttons.css&quot;/&gt;
&lt;/head&gt;
</pre><p>To apply a button style to any element, add a <code>.button</code> class with one of the desired colors. The 21 available colors are detailed in the following section ( you can remove and add more easily ).</p><pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;button pink&quot; href=&quot;#&quot;&gt;
Im an anchor
&lt;/a&gt;
&lt;button class=&quot;button graphite&quot;&gt;
Im a button element
&lt;/button&gt;
&lt;div class=&quot;button red&quot;&gt;
Im a div!
&lt;/div&gt;
&lt;p class=&quot;button orange&quot;&gt;
hmmm and i'm a p
&lt;/p&gt;
</pre><h3>Adding More Colors</h3><p>Its quite easy, just copy-paste one of the predefined CSS button colors and change the hexadecimal value of the background color. You only need to provide one color, the rest of the class will automatically create the gradients for the different states by using box-shadow and css3 gradients. For example you can copy the following CSS and replace the <code>#c4c4c4</code> with any color you like. Make sure to rename the copied classes to match your new color.</p><pre class="brush: css; title: ; notranslate">
/* SILVER */
.button.silver {
background: #c4c4c4;
background: #c4c4c4 -webkit-gradient( linear, 0% 0%, 0% 100%, from(rgba(255,255,255,.4)),to(rgba(0,0,0,0)));
background: #c4c4c4 -moz-linear-gradient( top, rgba(255,255,255,.4), rgba(0,0,0,0));
}
.button.silver:hover {
background: #c4c4c4 -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,.55)), to(rgba(0,0,0,0)));
background: #c4c4c4 -moz-linear-gradient( top, rgba(255,255,255,.55), rgba(0,0,0,0));
}
.button.silver:active {
background: #c4c4c4 -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(0,0,0,.3)), to(rgba(0,0,0,0)));
background: #c4c4c4 -moz-linear-gradient( top, rgba(0,0,0,.1), rgba(0,0,0,0));
}
</pre><h3>Browser Support</h3><p><img
class="border aligncenter size-full wp-image-887" title="browsers" src="http://www.mattvarone.com/wp-content/uploads/2010/12/browsers.jpg" alt="" width="560" height="424" /></p><p>So far, it only works on Safari, Chrome and Firefox. It has a decent degradation on Opera but not so much on IE. Hopefully this will change in the near future with IE9. Thanks for reading!</p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/css3-buttons-library/">CSS3-only Buttons Library</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/css3-buttons-library/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>UItoTop jQuery Plugin</title><link>http://www.mattvarone.com/web-design/uitotop-jquery-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uitotop-jquery-plugin</link> <comments>http://www.mattvarone.com/web-design/uitotop-jquery-plugin/#comments</comments> <pubDate>Thu, 03 Sep 2009 14:11:56 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Interface Design]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Plugins]]></category> <category><![CDATA[Resources]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=763</guid> <description><![CDATA[Current version: 1.1 3/4/10. WordPress plugin version over here. Inspired &#8230; <a
href="http://www.mattvarone.com/web-design/uitotop-jquery-plugin/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/uitotop-jquery-plugin/">UItoTop jQuery Plugin</a></p> ]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-1510" title="uitotop" src="http://www.mattvarone.com/wp-content/uploads/2009/09/uitotop1.jpg" alt="" width="520" height="134" /></p><p
class="message-box ok">Current version: <strong>1.1</strong> 3/4/10. <strong>WordPress plugin version <a
title="Dynamic To Top WordPress Plugin" href="http://www.mattvarone.com/featured-content/dynamic-to-top/">over here</a></strong>.</p><p>Inspired by the great idea of David Walsh&#8217;s <a
href="http://davidwalsh.name/jquery-top-link/"> jQuery topLink Plugin</a>, I made a similar plugin but with two key differences, this one does not require you to add extra html markup or extra plugins to function. It will only work when JavaScript is turned on ( on purpose ), It&#8217;s easy to setup with only one line of code, and it works cross-browser nicely ( Tested: IE6-8, FF, Safari ).</p><p>Optionally it can benefit from the <a
href="http://gsgd.co.uk/sandbox/jquery/easing/">jQuery Easing plugin</a> with a different easing animation for the page scrolling.</p><div
class="post-box">UItoTop: <a
href="http://lab.mattvarone.com/projects/jquery/totop/">View the demo</a> <a
href="http://lab.mattvarone.com/projects/jquery/totop/jquery.ui.totop.zip"> Download</a></div><h4>RELEASE NOTES</h4><p><strong>ver 1.1</strong> &#8211; Improvements to configuration conveniences. *<br
/> <strong>ver 1.0</strong> &#8211; First Release.</p><p><em>* Big thanks to Rémy Tourbiez for this contribution to the code.</em></p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/uitotop-jquery-plugin/">UItoTop jQuery Plugin</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/uitotop-jquery-plugin/feed/</wfw:commentRss> <slash:comments>56</slash:comments> </item> <item><title>SimpleForm: Easy PHP multi-form email handler</title><link>http://www.mattvarone.com/web-design/simpleform-php-email-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simpleform-php-email-script</link> <comments>http://www.mattvarone.com/web-design/simpleform-php-email-script/#comments</comments> <pubDate>Thu, 16 Apr 2009 18:49:46 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Forms]]></category> <category><![CDATA[Mail]]></category> <category><![CDATA[PHP]]></category> <guid
isPermaLink="false">http://www.mattvarone.com/?p=705</guid> <description><![CDATA[Releasing a new version of my contact form script, this &#8230; <a
href="http://www.mattvarone.com/web-design/simpleform-php-email-script/" title="Continue Reading">Continue <span
class="meta-nav">&#8594;</span></a><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/simpleform-php-email-script/">SimpleForm: Easy PHP multi-form email handler</a></p> ]]></description> <content:encoded><![CDATA[<p>Releasing a new version of my contact form script, this time under the name <strong>SimpleForm</strong>. It&#8217;s a nicer version of the previous one, re-written from the ground up and with a couple of new features. <em>SimpleForm</em> is basically meant to be an <strong>easy solution to handle one or many forms with little effort</strong>. It&#8217;s mainly focused on ease of use and rapid deployment.</p><p><img
class="aligncenter border" title="simpleform" src="http://www.mattvarone.com/wp-content/uploads/2009/04/simpleform.jpg" alt="simpleform" width="560" height="134" /></p><p
class="message-box info">Current version: <strong>1.1.4</strong> 7/31/09</p><h4>These are a couple of it&#8217;s main features <strong>( ver. 1.1.4 )</strong>:</h4><p>* Multiform handler.<br
/> * Support for required fields.<br
/> * PHP <a
title="email validation" href="http://www.linuxjournal.com/article/9585">email validation</a>.<br
/> * Unobtrusive JavaScript function to pre-check form data ( 4KB file ).<br
/> * Lightweight, easy to use.<br
/> * Multilingual support.<br
/> * External configuration file that can reside outside the public folder.</p><div
class="post-box"><a
href="http://lab.mattvarone.com/demos/simpleform/">View the demo</a> <a
title="Multiple Forms" href="http://lab.mattvarone.com/demos/simpleform/multiple.php"> Multiple Forms</a> <a
href="http://lab.mattvarone.com/demos/simpleform/simpleform.1.1.4.zip">Download</a></div><h3>HOW DOES IT WORKS?</h3><p>It&#8217;s very simple, first there is a configuration file where you define all of your website forms, by this I mean form title, form fields, form required fields and the location of each form. Then there are some snippets you have to add to your form page/s and thats all. SimpleForm takes care of pre-cheking the form fields with JS and then validating them with PHP, if it&#8217;s valid then it will send the email to the configured email address and return the user to the form page with a success message or otherwise, with an error message.</p><h3>INSTALLING THE SCRIPT</h3><h4>These are the necessary steps to have it up and running ( requires PHP 5 ):</h4><ol
class="normal"><li><strong>Download</strong> <a
href="http://lab.mattvarone.com/demos/simpleform/simpleform.1.1.4.zip">SimpleForm</a> ( ver 1.1.4 )</li><li><strong>Open sf-config.php</strong> and edit the necessary info.</li><li><strong>Upload sf-config.php</strong> to your host ( preferably outside the public folder ).</li><li>Open <strong>simpleform.php</strong> and edit the variable <em>$PATH_TO_CONFIG_FILE</em> ( on line 24 ) with the path from <em>simpleform.php</em> to <em>sf-config.php</em> ( leave empty if it resides on the same folder ).</li><li>Upload<strong> simpleform.php</strong>, <strong>simpleform.css</strong> and <strong>checkform.mini.js</strong> inside your public folder.</li><li>Open your form page/s and <strong>add the necessary code snippets</strong>.</li></ol><p><span
id="more-705"></span></p><h3>EDITING THE CONFIGURATION FILE SF-CONFIG.PHP</h3><pre class="brush: php; title: ; notranslate">
# ------------------------------------------------------------ #
// SIMPLEFORM CONFIGURATION								      //
# ------------------------------------------------------------ #
/* GENERAL CONFIGURATION
/////////////////////////////*/
// The name of the website/client. Example: &quot;My Website&quot;.
$aSettings[&quot;szFrom&quot;] = &quot;&quot;;
// The email address that will receive the emails. Example: &quot;me@myemail.com&quot;.
$aSettings[&quot;szRecipient&quot;] = &quot;&quot;;
/* The email address that will be used to send the emails. To work properly this has to be a real account
configured on the same server of the site. Example: &quot;noreply@mywebsite.com&quot;. */
$aSettings[&quot;szFromEmail&quot;] = &quot;&quot;;
/* FORMS CONFIGURATION
/////////////////////////////*/
/* The next step is to configure the Form/s.
   You can add as many as you want. */
$aForms = array(
	1 =&gt; array( 									// FORM ID: 1
		&quot;szFormTitle&quot; =&gt; &quot;&quot;,						// FORM TITLE - Example: &quot;Contact Form&quot;
		&quot;szFormURL&quot; =&gt; &quot;&quot;,							// FORM URL ( users will be redirected to this page )
		&quot;szFormRequired&quot; =&gt; array(					/* REQUIRED FIELDS ( array of name attributes ) */
			&quot;name&quot;,
			&quot;email&quot;,
		),
		&quot;aFormFields&quot; =&gt; array( 					/* LIST OF FORM FIELDS AND THEIR OUTPUT NAME
 													  All input fields coming from the form should go here.
													  The first value is the name attribute used and the second value
													  on the right the name displayed on the outputted data.
													  Any required field that contains the word &quot;email&quot; will have
													  it&quot;s value validated as an email address. */
		   	&quot;name&quot; =&gt; &quot;First Name&quot;,
			&quot;email&quot; =&gt; &quot;E-mail&quot;,
			&quot;work_email&quot; =&gt; &quot;Work Email&quot;,
			&quot;phone&quot; =&gt; &quot;Telephone&quot;,
			&quot;-sep1&quot; =&gt; &quot;This is a separator&quot;,		/* This is a separator. Any variable starting with the sign &quot;-&quot;
														will act as a content separator. */
			&quot;color&quot; =&gt; &quot;Color Option&quot;,
			&quot;comments&quot; =&gt; &quot;Comments&quot;,
			&quot;-sep2&quot; =&gt; &quot;This is Another separator&quot;,
			&quot;newsletter&quot; =&gt; &quot;Subscribe to our Newsletter?&quot;,
			&quot;interested[]&quot; =&gt; &quot;Im interested in&quot;,
			/* add more */
			)
	),
	2 =&gt; array(										/* Form 2. Same as above */
		&quot;szFormTitle&quot; =&gt; &quot;&quot;,
		&quot;szFormRequired&quot; =&gt; array(),
		&quot;szFormURL&quot; =&gt; &quot;&quot;,
		&quot;aFormFields&quot; =&gt; array(
			/* add more */
			)
	),
	3 =&gt; array(										/* Form 3. Same as above */
		&quot;szFormTitle&quot; =&gt; &quot;&quot;,
		&quot;szFormRequired&quot; =&gt; array(),
		&quot;szFormURL&quot; =&gt; &quot;&quot;,
		&quot;aFormFields&quot; =&gt; array(
			/* add more */
			)
		),
	/* add more */
);
/* RESPONSE CONFIGURATION
/////////////////////////////*/
/* Response Messages: These are the variables that hold the messages
the system prints as response. You can modify them to suit your project needs. */
 // Form has been sent.
$aSettings[&quot;aMessages&quot;][&quot;szSubmitSucess&quot;]  = &quot;Your message has been sent succesfully. Thanks!&quot;;
// Missing fields.
$aSettings[&quot;aMessages&quot;][&quot;szMissingFields&quot;] = &quot;Please complete all required fields.&quot;;
// Unvalid email address.
$aSettings[&quot;aMessages&quot;][&quot;szUnvalidEmail&quot;]  = &quot;Please insert a valid email address.&quot;;
// Email not sent by system error.
$aSettings[&quot;aMessages&quot;][&quot;szSystemError&quot;]   = &quot;There was an error in the system. Please try again later. Thanks!&quot;;
/* ADVANCED CONFIGURATION
/////////////////////////////*/
// Name of the GET variable to pass response messages
define( &quot;GET_NAME&quot;, &quot;response&quot;);
// Debug mode ( prints email content, and system errors )
define( &quot;DEBUG_MODE&quot; , false );
/* Check if the domain of the submitted email addresses exists.
False by default as it may bring problems with some servers. ) */
define( &quot;CHECK_EMAIL_ADDRESS_DNS&quot; , false );
</pre><h3>INTEGRATING SIMPLEFORM WITH YOUR FORMS</h3><p>Below you&#8217;ll find the things you need to do to your form page ( must be php file ) for SimpleForm to work. I also have included a full example at bottom.</p><h4>A. Add Javascript and CSS files</h4><p>Add <strong>simpleform.css</strong> and<strong> checkform.js</strong> ( or <strong>checkform.mini.js</strong> ) inside the <strong>&lt;head&gt;</strong> element:</p><pre class="brush: xml; title: ; notranslate">
	&lt;link rel=&quot;stylesheet&quot; href=&quot;simpleform.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;/&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;checkform.mini.js&quot;&gt;&lt;/script&gt;
	</pre><h4>B. Define the path to the config file and Include <strong>simpleform.php</strong> in the document ( before your form/s ):</h4><pre class="brush: php; title: ; notranslate">
	&lt;?php
	define( &quot;CONFIG_PATH&quot;, &quot;place/here/the/path/to/sf-congif/dir/&quot; );
	require_once &quot;simpleform.php&quot;;
	$sForm = new simpleForm();
	?&gt;
	</pre><h4>C. Add SimpleForm <strong>Responses function</strong></h4><p>Prints the systems response and can reside anywhere on the document.</p><pre class="brush: php; title: ; notranslate">
			&lt;?php
 		   	// Example: &lt;p class=&quot;message-box error&quot;&gt;Please insert a valid email address.&lt;/p&gt;
 		   	$sForm-&gt;handleMessage(); ?
 		   	&gt;
		</pre><p>Output example:</p><p
class="message-box error">Please insert a valid email address.</p><h4>D. Add SimpleForm <strong>Form function</strong></h4><p>This function generates the required hidden input fields for simpleForm to work. The value passed is the ID assigned to the current form in the configuration file. This function must reside in between the <code>&lt;form&gt;&lt;/form&gt;</code> elements.</p><pre class="brush: php; title: ; notranslate">
 &lt;?php
 //Prints necessary data for the form with the ID = 1
$sForm-&gt;printData(1);
?&gt;
</pre><h4>E. Edit the<strong> &lt;form&gt; attributes</strong>:</h4><p>Point the form&#8217;s <em>action attribute</em> to <strong>simpleform.php</strong> and then add the <strong>checkform</strong> function to enable the js data pre-checking.</p><pre class="brush: xml; title: ; notranslate">
	&lt;form action=&quot;simpleform.php&quot; method=&quot;post&quot; onsubmit=&quot;return checkform(this)&quot;&gt;
</pre><p>The <code>checkform()</code> function supports an optional string parameter which alters the text you<br
/> want to display on the js alerts. The variable #name is provided as a wildcard for the field Name.</p><p><strong>Examples:</strong><br
/> &#8220;Please complete the field #name&#8221;<br
/> &#8220;The field #name is missing&#8221;<br
/> &#8220;Por Favor complete el campo #name&#8221;</p><pre class="brush: xml; title: ; notranslate">
				onsubmit=&quot;return checkform(this,'The field #name is missing')&quot;
				</pre><h4>Full Example</h4><pre class="brush: php; title: ; notranslate">
	&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
		&lt;head&gt;
			&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
			&lt;title&gt;SimpleForm Example&lt;/title&gt;
			&lt;link rel=&quot;stylesheet&quot; href=&quot;simpleform.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;/&gt;
			&lt;script type=&quot;text/javascript&quot; src=&quot;checkform.mini.js&quot;&gt;&lt;/script&gt;
		&lt;/head&gt;
		&lt;body&gt;
			&lt;?php
			define( &quot;CONFIG_PATH&quot;, &quot;../secure/&quot; );
			require_once &quot;simpleform.php&quot;;
			$sForm = new simpleForm();
			$sForm-&gt;handleMessage();
			?&gt;
			&lt;form action=&quot;simpleform.php&quot; method=&quot;post&quot; onsubmit=&quot;return checkform(this)&quot;&gt;
		 	&lt;fieldset&gt;
		 	&lt;?php $sForm-&gt;printData(1); ?&gt;
				&lt;legend&gt;Personal Details:&lt;/legend&gt;
		        &lt;label for=&quot;name&quot; &gt;Name&lt;/label&gt;
		        &lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&quot; /&gt;
		        &lt;label for=&quot;email&quot;&gt;Email &lt;span class=&quot;required&quot;&gt;(required)&lt;/span&gt;&lt;/label&gt;
		        &lt;input name=&quot;email&quot; id=&quot;email&quot; type=&quot;text&quot; value=&quot;&quot; /&gt;
				&lt;label for=&quot;work_email&quot;&gt;Work Email&lt;/label&gt;
		        &lt;input name=&quot;work_email&quot; id=&quot;work_email&quot; type=&quot;text&quot; value=&quot;&quot; /&gt;
				&lt;label for=&quot;phone&quot;&gt;Telephone &lt;span class=&quot;required&quot;&gt;(required)&lt;/span&gt;&lt;/label&gt;
		        &lt;input name=&quot;phone&quot; id=&quot;phone&quot; type=&quot;text&quot; value=&quot;&quot; /&gt;
		        &lt;label for=&quot;color&quot;&gt;Color Options: &lt;span class=&quot;required&quot;&gt;(required)&lt;/span&gt;&lt;/label&gt;
		        &lt;select name=&quot;color&quot; id=&quot;color&quot;&gt;
					&lt;option value=&quot;-&quot;&gt;Choose a color&lt;/option&gt;
					&lt;option value=&quot;Red&quot;&gt;Red&lt;/option&gt;
					&lt;option value=&quot;Green&quot;&gt;Green&lt;/option&gt;
					&lt;option value=&quot;Blue&quot;&gt;Blue&lt;/option&gt;
				&lt;/select&gt;
		        &lt;label for=&quot;comments&quot;&gt;Comments&lt;/label&gt;
		        &lt;textarea name=&quot;comments&quot; id=&quot;comments&quot; rows=&quot;10&quot; cols=&quot;50&quot;&gt;&lt;/textarea&gt;
		        &lt;/fieldset&gt;
		        &lt;fieldset class=&quot;radio&quot;&gt;
		            &lt;legend&gt;Subscribe to our Newsletter? &lt;span class=&quot;required&quot;&gt;(required)&lt;/span&gt;&lt;/legend&gt;
		            &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;newsletter&quot; value=&quot;Yes&quot; /&gt; Yes&lt;/label&gt;
		            &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;newsletter&quot; value=&quot;No&quot; /&gt; No&lt;/label&gt;
		        &lt;/fieldset&gt;
				&lt;fieldset class=&quot;checkbox&quot;&gt;
		            &lt;legend&gt;Im interested in: &lt;span class=&quot;required&quot;&gt;(required)&lt;/span&gt;&lt;/legend&gt;
		            &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;interested[]&quot; value=&quot;Arts&quot; /&gt; Arts&lt;/label&gt;
					&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;interested[]&quot; value=&quot;Science&quot; /&gt; Science&lt;/label&gt;
					&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;interested[]&quot; value=&quot;Sports&quot; /&gt; Sports&lt;/label&gt;
		        &lt;/fieldset&gt;
		        &lt;p&gt;&lt;button type=&quot;submit&quot;&gt;Submit this!&lt;/button&gt;&lt;/p&gt;
		    &lt;/form&gt;
		&lt;/body&gt;
		&lt;/html&gt;
</pre><div
class="post-box"><a
href="http://lab.mattvarone.com/demos/simpleform/">View the demo</a> <a
title="Mutiple Forms" href="http://lab.mattvarone.com/demos/simpleform/multiple.php">Mutiple Forms</a> <a
href="http://lab.mattvarone.com/demos/simpleform/simpleform.1.1.4.zip">Download</a></div><h3>RELEASE NOTES</h3><p><strong>ver 1.1.4</strong> &#8211; Another Email Bug fixed ( Courtesy of megabonez ).<br
/> <strong>ver 1.1.3</strong> &#8211; Email Bug fixed ( Mayor thanks to Jim from <a
href="http://www.cpscreative.com">cpscreative.com</a> ).<br
/> <strong>ver 1.1.2</strong> &#8211; Minor Bugs fixed.<br
/> <strong>ver 1.1.1</strong> &#8211; Optional Email DNS checking.<br
/> <strong>ver 1.1</strong> &#8211; Easier path deployment, Configurable response variable name, Debug function and minor bug fixes.<br
/> <strong>ver 1.0</strong> &#8211; First Release.</p><p>This is a post from: <a
href="http://www.mattvarone.com">Matt Varone</a><br/><br/><a
href="http://www.mattvarone.com/web-design/simpleform-php-email-script/">SimpleForm: Easy PHP multi-form email handler</a></p> ]]></content:encoded> <wfw:commentRss>http://www.mattvarone.com/web-design/simpleform-php-email-script/feed/</wfw:commentRss> <slash:comments>82</slash:comments> </item> </channel> </rss>
