<?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>HTML-Website &#187; Web Development</title>
	<atom:link href="http://html-website.com/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://html-website.com</link>
	<description>Web Talk, Coding Tips, and Random Jabber!</description>
	<lastBuildDate>Tue, 20 Apr 2010 16:32:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTML Website</title>
		<link>http://html-website.com/html-website/</link>
		<comments>http://html-website.com/html-website/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 04:26:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=285</guid>
		<description><![CDATA[A page on the internet is made up of HTML, thus making it an HTML Website. However, the backend is usually a scripting language such as ASP, PHP, or ColdFusion, which allows you do interact with users and save data.
HTML is simply a markup language, which look like tags &#60;in_brackets&#62;. It's very easy to learn, [...]]]></description>
			<content:encoded><![CDATA[<p>A page on the internet is made up of HTML, thus making it an <strong>HTML Website</strong>. However, the backend is usually a scripting language such as ASP, PHP, or ColdFusion, which allows you do interact with users and save data.</p>
<p>HTML is simply a markup language, which look like tags &lt;in_brackets&gt;. It's very easy to learn, and it goes perfectly with CSS. If you have an HTML Website, you should try to include CSS as much as possible so that it's easier to edit in the future.</p>
<p>You can Learn HTML very easily at <a href="http://www.w3schools.com/html/" target="_blank">W3Schools</a>. All you need to edit HTML is notepad, and to view it you need a web browser (Which is the thing you are viewing this site in, Internet Explorer, Firefox, Chrome, etc).</p>
<p>With an <strong>HTML Website</strong> you can create links, information pages, add images, and hundreds of other things. But you can not make your HTML website save files automatically, and record information in a database unless you are using a server-side language, mentioned above. That is where things get very difficult, and it's best to start early.</p>
<div style="width: 300px; margin: 0 auto;">
<div style="float:right;">
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&npa=1&bg1=FFFFFF&fc1=000000&lc1=008F63&t=thelostseedmi-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=0596802447" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</div>
<div style="float: left;">
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&npa=1&bg1=FFFFFF&fc1=000000&lc1=009B64&t=thelostseedmi-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=B0019JH0VS" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</div>
</div>
<p><br style="clear: both;" /></p>
<p>If you practice HTML for 2 weeks, you will know it very well. Make sure to learn how to make your HTML Website the best it can be, you might enjoy it and you could possibly make a career in it.</p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/html-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP &amp; Before Variables</title>
		<link>http://html-website.com/php-before-variables/</link>
		<comments>http://html-website.com/php-before-variables/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 18:18:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=273</guid>
		<description><![CDATA[What is the &#38;  in PHP before a variable? The easiest way to explain is to give you an example..
&#160;
$fruit = &#34;apple&#34;;
$myItem = &#38;$fruit;
&#160;
echo $myItem;
&#160;
If you look at the above example, let's break it down:
1. $fruit is set to apple,
2. and $myItem references the value of $fruit.
3. So if you echo $myItem, it will return [...]]]></description>
			<content:encoded><![CDATA[<p>What is the <strong>&amp;  in PHP before a variable?</strong> The easiest way to explain is to give you an example..</p>
<pre class="php">&nbsp;
<span style="color: #0000ff;">$fruit</span> = <span style="color: #ff0000;">&quot;apple&quot;</span>;
<span style="color: #0000ff;">$myItem</span> = &amp;<span style="color: #0000ff;">$fruit</span>;
&nbsp;
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$myItem</span>;
&nbsp;</pre>
<p>If you look at the above example, let's break it down:<br />
1. $fruit is set to apple,<br />
2. and $myItem references the value of $fruit.<br />
3. So if you echo $myItem, it will return the value of whatever $fruit is.<br />
Does that make sense?</p>
<p>Let's make it a tiny bit more complex to give you a better idea. Again, in <strong>PHP the &amp; before a variable is a reference</strong>, meaning it will change if $fruit changes. If you were to do the following:</p>
<pre class="php"><span style="color: #0000ff;">$fruit</span> = <span style="color: #ff0000;">&quot;apple&quot;</span>;
<span style="color: #0000ff;">$myItem</span> = &amp;<span style="color: #0000ff;">$fruit</span>;
&nbsp;
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$myItem</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Now we are changing the fruit value</span>
<span style="color: #0000ff;">$fruit</span> = <span style="color: #ff0000;">&quot;banana&quot;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// And again we are referencing from myItem</span>
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$myItem</span>;
&nbsp;</pre>
<p>The output will be "applebanana", because we have changed the value of $fruit again, and $myItem will reference it's current state.</p>
<p>I honestly rarely ever use reference variables, perhaps it's a lack of skill or technique but I don't find much use for it in day to day programming. They are useful in things like a PHP OOP Registry Class, but I don't find a huge use for &amp; references variables while doing day to day tasks.</p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/php-before-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoshop Cursor Stuck on Hand</title>
		<link>http://html-website.com/photoshop-stuck-on-hand/</link>
		<comments>http://html-website.com/photoshop-stuck-on-hand/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 05:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=266</guid>
		<description><![CDATA[Have you ever loaded Photoshop and suddenly the Photoshop Cursor was stuck on the Hand? As if every tool displays nothing besides the "hand" icon. This is once and a while a problem in windows XP, the solution is quick.
Edit &#62; Preferences &#62; General  (Or press CTRL+K)
Click the button at the bottom "Reset All Warning [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript"><!--
google_ad_client = "pub-6324256972992684";
/* HTMLWEBSITE thin banner */
google_ad_slot = "5581460554";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><p>Have you ever loaded Photoshop and suddenly the <strong>Photoshop Cursor was stuck on the Hand</strong>? As if every tool displays nothing besides the "hand" icon. This is once and a while a problem in windows XP, the solution is quick.</p>
<p>Edit &gt; Preferences &gt; General  (Or press CTRL+K)<br />
Click the button at the bottom "Reset All Warning Dialogs".</p>
<p>It should be working instantly now, you may have to restart photoshop.</p>
<p><a href="http://html-website.com/wp-content/uploads/2010/04/photoshop-hand-icon.jpg"><img class="alignnone size-full wp-image-267" title="photoshop-hand-icon" src="http://html-website.com/wp-content/uploads/2010/04/photoshop-hand-icon.jpg" alt="" width="470" height="282" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/photoshop-stuck-on-hand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Use Google Chrome?</title>
		<link>http://html-website.com/why-use-google-chrome/</link>
		<comments>http://html-website.com/why-use-google-chrome/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 23:51:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=245</guid>
		<description><![CDATA[
Google Chrome is the web browser introduced by Google. Firefox is steadily dominating near 50% of the web browsers for over a year, and Internet Explorer (versions 6, 7 and 8) all fall a bit behind FireFox.
The Chrome Browser is picking up at about 10% of all web users -- as it was at only [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.google.com/chrome" target="_blank"><img class="alignnone size-full wp-image-248" title="logo_sm" src="http://html-website.com/wp-content/uploads/2010/04/logo_sm.jpg" alt="" width="192" height="40" /></a></p>
<p>Google Chrome is the web browser introduced by Google. Firefox is steadily dominating near 50% of the web browsers for over a year, and Internet Explorer (versions 6, 7 and 8) all fall a bit behind FireFox.</p>
<p>The Chrome Browser is picking up at about 10% of all web users -- as it was at only 3% a year ago. The reason for such success, I believes, is due to the simplicity and light browsing.</p>
<p>If you use FireFox for web development, I suggest you stay with it. There aren't good enough replacement for plugins such as FireBug, Web Developer ToolBar, and the Ad Blocking.  However some of Google Chromes built in tools are decent, you can see them by pressing CTRL+SHIFT+I on a PC, or simply go to the "Page" icon on the right &gt; Developer &gt; Developer Tools.</p>
<p><a href="http://html-website.com/wp-content/uploads/2010/04/chrome-dev-tools.jpg"><img class="alignnone size-full wp-image-247" title="chrome-dev-tools" src="http://html-website.com/wp-content/uploads/2010/04/chrome-dev-tools.jpg" alt="chrome dev tools" width="350" height="150" /></a></p>
<p><strong>The best reason to switch to Chrome, in my opinion, is speed.</strong> Although Firefox is a fantastic browser, the load-up and page load times pale in comparison to Google Chrome. Chrome is extremely light-weight, and has a very pretty GUI.</p>
<p>I've been using Chrome lately for Facebook, Checking email, and researching sites. For web development I stick to FireFox. I believe in the next year we will see Chrome have all the plugins which make FireFox so great yet with a faster, more crash-resistant browser.</p>
<p>It takes a little while to get used to switching browers, or forming the habit of using two different ones. But I highly suggest you try out <a href="http://www.google.com/chrome" target="_blank">Chrome </a>for a few weeks and see what you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/why-use-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 Cool JQuery Form Plugins</title>
		<link>http://html-website.com/7-cool-jquery-form-plugins/</link>
		<comments>http://html-website.com/7-cool-jquery-form-plugins/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 01:31:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=233</guid>
		<description><![CDATA[Here is a collection of several great Jquery Form Plugins.. They are quite easy to install and spice your site up to life, give it some flavor.
JQuery Checkbox Plugin
This JQuery plugin is pretty cool, it allows a Light-Switch type of button to toggle buttons.



JQuery Fancy Form
This form effect gives checkboxes different styles, it also formats [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a collection of several great <strong>Jquery Form Plugins</strong>.. They are quite easy to install and spice your site up to life, give it some flavor.</p>
<p><a href="http://widowmaker.kiev.ua/checkbox/" target="_blank">JQuery Checkbox Plugin</a><br />
This JQuery plugin is pretty cool, it allows a Light-Switch type of button to toggle buttons.</p>
<p><a href="http://html-website.com/wp-content/uploads/2010/03/jquerycheckbox.jpg"><img class="size-full wp-image-232 alignnone" title="jquerycheckbox" src="http://html-website.com/wp-content/uploads/2010/03/jquerycheckbox.jpg" alt="" width="350" height="150" /></a><a href="http://html-website.com/wp-content/uploads/2010/03/jqtransform.jpg"></a></p>
<p><a href="http://html-website.com/wp-content/uploads/2010/03/jqtransform.jpg"><br />
</a><a href="http://lipidity.com/fancy-form/" target="_blank"><br />
JQuery Fancy Form</a><br />
This form effect gives checkboxes different styles, it also formats Radio buttons.</p>
<p><a href="http://html-website.com/wp-content/uploads/2010/03/fancyform.jpg"><img class="size-full wp-image-230 alignnone" title="fancyform" src="http://html-website.com/wp-content/uploads/2010/03/fancyform.jpg" alt="" width="350" height="150" /></a></p>
<p><a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" target="_blank"></p>
<p>Bassistance Autocomplete</a><br />
This is a nice JQuery AJAX Autocomplete which can be useful for PHP/MySQL.<br />
<a href="http://html-website.com/wp-content/uploads/2010/03/bassautocomplete.jpg"><img class="size-full wp-image-227 alignnone" title="bassautocomplete" src="http://html-website.com/wp-content/uploads/2010/03/bassautocomplete.jpg" alt="" width="350" height="150" /></a></p>
<p><a href="http://www.marghoobsuleman.com/jquery-image-dropdown" target="_blank"></p>
<p>JQuery Image Dropdown</a><br />
Every wanted images in your drop down menus? Now you can -- this ought to spice up your form!<br />
<a href="http://html-website.com/wp-content/uploads/2010/03/dropdownimg.jpg"><img class="size-full wp-image-229 alignnone" title="dropdownimg" src="http://html-website.com/wp-content/uploads/2010/03/dropdownimg.jpg" alt="" width="350" height="150" /></a></p>
<p><a href="http://www.whitespace-creative.com/jquery/jNice/?textfield=&amp;textfield2=&amp;select=&amp;select=&amp;Submit=Submit﻿" target="_blank"></p>
<p>JQuery Nice Forms</a><br />
This formats your forms and makes the inputs pretty</p>
<p><a href="http://html-website.com/wp-content/uploads/2010/03/jquerynice.jpg"><img class="size-full wp-image-226 alignnone" title="jquerynice" src="http://html-website.com/wp-content/uploads/2010/03/jquerynice.jpg" alt="" width="350" height="150" /></a></p>
<p><a href="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/" target="_blank"></p>
<p>JQTransform</a><br />
Like the Nice Forms plugin this one also styles your forms.<br />
<a href="http://html-website.com/wp-content/uploads/2010/03/jqtransform.jpg"><img class="size-full wp-image-231 alignnone" title="jqtransform" src="http://html-website.com/wp-content/uploads/2010/03/jqtransform.jpg" alt="" width="350" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/7-cool-jquery-form-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BaseCamp Alternative &#124; ActiveCollab Alternative</title>
		<link>http://html-website.com/active-collab-alternative-basecamp-alternative/</link>
		<comments>http://html-website.com/active-collab-alternative-basecamp-alternative/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 18:35:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[activecollab]]></category>
		<category><![CDATA[activecollab alternative]]></category>
		<category><![CDATA[basecamp]]></category>
		<category><![CDATA[basecamp alternative]]></category>
		<category><![CDATA[basecamphq]]></category>
		<category><![CDATA[groupware]]></category>
		<category><![CDATA[php groupware]]></category>
		<category><![CDATA[php project management]]></category>
		<category><![CDATA[php project manager]]></category>
		<category><![CDATA[pm software]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[project management software]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=219</guid>
		<description><![CDATA[Looking for a BaseCamp alternative? BaseCamp is a popular project management solution yet has a fairly hefty price tag after using it a few months. This is known as Saas (Software as a Service), meaning you never have a license.
There is also, ActiveCollab which is a Project Management system that you can purchase for your [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Looking for a <strong>BaseCamp alternative</strong>? BaseCamp is a popular project management solution yet has a fairly hefty price tag after using it a few months. This is known as Saas (Software as a Service), meaning you never have a license.</p>
<p style="text-align: left;">There is also, <strong>ActiveCollab</strong> which is a Project Management system that you can purchase for your web-host which gives you the ability to collaborate with clients and empoyees on projects, much like freelancerKit.  If you are looking for an affordable alternative to both <strong>ActiveCollab</strong><a href="http://www.activecollab.com"><strong> </strong></a>and <strong>BaseCamp</strong>, check out <a href="http://www.freelancerkit.com"><strong>freelancerKit</strong></a>.</p>
<p style="text-align: left;">A great alternative to Basecamp is freelancerKit -- The software quality of freelancerKit is amazing with its sexy Graphical User Interface (GUI), and smooth operation flow. Cost savings pays off instantly, you don't need to keep coming back to upgrade your clients or increase users -- everything is run on yoursite, and freelancerKit can be easily branded to look as if you made it yourself!</p>
<p style="text-align: left;"><a href="http://www.freelancerkit.com" target="_blank"><img class="alignnone size-full wp-image-261" title="freelancerkit" src="http://html-website.com/wp-content/uploads/2010/03/freelancerkit.jpg" alt="basecamp alternative" width="355" height="96" /></a></p>
<p style="text-align: left;"><strong>Compare Yourself:<a href="http://www.freelancerkit.com"><br />
- freelancerKit BaseCamp Alternative</a></strong><br />
<a href="http://www.activecollab.com">- ActiveCollab</a><br />
<a href="http://www.basecamphq.com">- BaseCampHQ</a></p>
<p><img class="alignnone" title="freelancerKit | PHP Project Management" src="http://www.freelancerkit.com/public/images/tour/th5.jpg" alt="" width="200" height="109" /><img class="alignnone" title="ActiveCollab Alternative - FreelancerKit" src="http://www.freelancerkit.com/public/images/tour/th7.jpg" alt="" width="200" height="109" /><img class="alignnone" title="BaseCamp Alternative - freelancerKit" src="http://www.freelancerkit.com/public/images/tour/th8.jpg" alt="" width="200" height="109" /><a href="http://www.basecamphq.com"><br />
</a><br />
With all of the same features as the others but for a lower cost..</p>
<p>Here are some of the freelancerKit aka <strong>BaseCamp Alternative</strong> and ActiveCollab Alternative features:</p>
<p>- Users: Master Admin, Admin, Employee, Client<br />
- Projects: Project Tracking, Status/Progress/Priority<br />
- Collaboration on Projects<br />
- User Management<br />
- File Management<br />
- Newsletter Sender<br />
- Mail Sender<br />
- Note/Document Management<br />
- Attach Files/Notes to Projects<br />
- Invoicing/Quotes<br />
- Lots of others.</p>
<p>There is also a <a href="http://www.freelancerkit.com/affiliate.php">freelancerKit affiliate</a> program if you blog.<br />
BaseCamp is no longer the only PM Solution. There are many alternatives to Basecamp, but we feel freelancerKit fits the bill with quality and price, ready to check out the <a href="http://www.freelancerkit.com">BaseCamp Alternative?</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 97px; width: 1px; height: 1px;">http://www.freelancerkit.com/affiliate.php</div>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/active-collab-alternative-basecamp-alternative/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AJAX in PHP for fresh $_GET&#8217;s</title>
		<link>http://html-website.com/ajax-in-php-for-fresh-_gets/</link>
		<comments>http://html-website.com/ajax-in-php-for-fresh-_gets/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 06:57:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=214</guid>
		<description><![CDATA[If you are having trouble showing fresh content from PHP/MySQL in AJAX, try this out!
First, you must obviously include JQuery lib.
Then, using Jquery set an AJAX load in your View or Template:
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;
&#38;lt;span&#38;gt;&#40;document&#41;.ready&#40;function&#40;&#38;lt;/span&#38;gt;&#41; &#123;
&#38;lt;span&#38;gt;
     $&#40;&#34;#element&#34;&#41;.load&#40;&#34;stuff.&#38;lt;/span&#38;gt;php?idea&#34;&#41;;
&#160;
&#125;&#41;;
&#38;lt;/script&#38;gt;
&#160;
&#38;lt;div id=&#34;element&#34;&#38;gt;&#38;lt;/div&#38;gt;
Then get the php file you are loading, in this case its stuff.php, and create a [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having trouble showing fresh content from PHP/MySQL in AJAX, try this out!</p>
<p>First, you must obviously include JQuery lib.</p>
<p>Then, using Jquery set an AJAX load in your View or Template:</p>
<pre class="javascript">&amp;lt;script type=<span style="color: #3366CC;">&quot;text/javascript&quot;</span>&amp;gt;
&amp;lt;span&amp;gt;<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>&amp;lt;/span&amp;gt;<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&amp;lt;span&amp;gt;
     $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#element&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;stuff.&amp;lt;/span&amp;gt;php?idea&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&amp;lt;/script&amp;gt;
&nbsp;
&amp;lt;div id=<span style="color: #3366CC;">&quot;element&quot;</span>&amp;gt;&amp;lt;/div&amp;gt;</pre>
<p>Then get the php file you are loading, in this case its stuff.php, and create a get request for the value passed in the URL, which is 'idea'.</p>
<pre class="php"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'idea'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Ajax is working'</span>;
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// All your functions in here</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a>; <span style="color: #808080; font-style: italic;">// Make sure to exit so nothing else processes.</span>
<span style="color: #66cc66;">&#125;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/ajax-in-php-for-fresh-_gets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validation: Problem Solving, 90% of the Work</title>
		<link>http://html-website.com/validation-problem-solving-90-of-the-work/</link>
		<comments>http://html-website.com/validation-problem-solving-90-of-the-work/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=212</guid>
		<description><![CDATA[When you program you'll quickly learn how fun it is, but the biggest lesson anyone will learn is the importance of validation. A good programmer is someone that foresees events that could possibly take place and cause an issue -- that doesn't mean they'll find every issue, but many. You have to play with what [...]]]></description>
			<content:encoded><![CDATA[<p>When you program you'll quickly learn how fun it is, but the biggest lesson anyone will learn is the importance of validation. A good programmer is someone that foresees events that could possibly take place and cause an issue -- that doesn't mean they'll find <strong>every</strong> issue, but many. You have to play with what you create to invent possibilities of bugs seeping out so they won't happen.</p>
<p>Alternatively, there are design patterns that give you a nice clue how to handle this, but that's a little more advanced for someone less than 4 years in I think. There are also options of using application frameworks that will make this easier (like Symfony, CodeIgniter, and other MVC frameworks). At this juncture I prefer doing it by my own objects and functions rather than learning how a separate framework functions, though they are all fairly similar.</p>
<p>90% of Work in programming is validation in my opinion. It's easy to write procedural code, difficult to thoughtfully break it down into Object Oriented code, either way there must be validation. For example an unvalidated field that processes a query could be bad news if your MySQL strings don't escape correctly and someone intentionally or unintentionally breaks the database query and destroys a table, possibly the entire database. Safe queries wherever data is stored is one of the most important things, also checking for digits, regular expressions, and such are required in order to get an application run reliably and track issues fast. Even one field that processes a query incorrectly can disable an entire application, and running a complete system update is more work than having it taken care of in the first place.</p>
<p>I made a simple relational table to assign users to projects with an ID, project_id, and user_id.<br />
Instead of breaking content into an array from one row like I previously had using an explode by ',', I went with new inserts per user/project assignment -- and must avoid duplicates since it's an insert.</p>
<p>Problems always arise with dirty strings, invalid strings, and duplicate content. I had to remove any potential to a duplicate so I figured these steps:</p>
<p>1. The creation only happens one time, so this can only apply to editing.</p>
<p>2. This will apply to the Edit section, so I have to pass a hidden variable to store the project ID, so I can chain it to <em>this</em> project ID. (Note: Not the same as project_id).</p>
<p>3. Since mysql_insert_id() would not work because this is an UPDATE not an INSERT I had to use the hidden variable I posted to find a relationship between the current project and the existing relational table. There is also no mysql_update_id() feature, which I wish there was!</p>
<pre class="php"><span style="color: #808080; font-style: italic;">// Process more users</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'assign_users'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'assign_users'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$add_user</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
	<span style="color: #808080; font-style: italic;">// First Check for Duplicate Assignments</span>
	<span style="color: #0000ff;">$check_duplicates</span> = <a href="http://www.php.net/mysql_query"><span style="color: #000066;">mysql_query</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;
		SELECT * FROM project_users
		WHERE `project_id`='$selectedProject'
		AND `user_id`='$add_user'&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">// Count Total Matches</span>
	<span style="color: #0000ff;">$count</span> = <a href="http://www.php.net/mysql_num_rows"><span style="color: #000066;">mysql_num_rows</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$check_duplicates</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #808080; font-style: italic;">// If No Duplicates, Proceed.</span>
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$count</span> == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
&nbsp;
			<span style="color: #0000ff;">$add_user</span> = clean<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$add_user</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<a href="http://www.php.net/mysql_query"><span style="color: #000066;">mysql_query</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;INSERT INTO project_users SET
				`project_id`='$selectedProject',
				`user_id`='$add_user'&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>As you can see before the final query which loops (the one most tabbed over), a lot of validation goes into it. This is very minor considering the outside functions. It's easy to write a block of code, but if it's not protected correctly there is nothing good about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/validation-problem-solving-90-of-the-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>General Programming 101</title>
		<link>http://html-website.com/general-programming-101/</link>
		<comments>http://html-website.com/general-programming-101/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:00:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=210</guid>
		<description><![CDATA[Programming is all logical and wrapped within a syntax. A syntax is like a structure, or requirement of rules to follow in the way it's written.
Kind of like driving down the road and staying in your lane, and using your blinker. Don't break those rules or something bad and unexpected might happen.
Here are two conditional [...]]]></description>
			<content:encoded><![CDATA[<p>Programming is all logical and wrapped within a syntax. A syntax is like a structure, or requirement of rules to follow in the way it's written.</p>
<p>Kind of like driving down the road and staying in your lane, and using your blinker. Don't break those rules or something bad and unexpected might happen.</p>
<p><strong>Here are two conditional statements that you can assume what they do easily:</strong><br />
if ()<br />
else ()</p>
<p><strong>You also have operators, which compare and do things much like in math:</strong><br />
=<br />
*<br />
!</p>
<p><strong>The key to all programming is called looping, or loops. Loops repeat themselves:</strong><br />
foreach ()<br />
for ()<br />
while ()</p>
<p><strong>You also assign variables, these are usually different in most languages so here are two different:</strong><br />
var jesse<br />
$jesse</p>
<p>If you want to create a simple program here is how you could do one.</p>
<p><strong>1. Assign variables. (The semi-colin at the end means it's the end of that piece)</strong></p>
<pre class="php"><span style="color: #0000ff;">$jesse</span> = <span style="color: #cc66cc;">24</span>;
<span style="color: #0000ff;">$joe</span> = <span style="color: #cc66cc;">25</span>;</pre>
<p><strong>2. Create a condition using and operator</strong></p>
<pre>if ($jesse &gt; $joe)
{
  echo 'Jesse is older than Joe';
}</pre>
<p><strong>3. Create and alternative condition, if that ones is false</strong></p>
<pre>else
{
  echo 'Joe is older than Jesse';
}</pre>
<p><strong>4. Create an array for fun</strong></p>
<pre class="php"><span style="color: #0000ff;">$names</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Joe'</span>, <span style="color: #ff0000;">'Jesse'</span>, <span style="color: #ff0000;">'Jenny'</span>, <span style="color: #ff0000;">'Justine'</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p><strong>5. Create a loop to print the array</strong></p>
<pre class="php"><span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$names</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$name</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$name</span> . <span style="color: #ff0000;">'
'</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p><strong>6. Cool, here is all the code. It looks easier when you know what you're dealing with!</strong></p>
<pre class="php"><span style="color: #0000ff;">$jesse</span> = <span style="color: #cc66cc;">24</span>;
<span style="color: #0000ff;">$joe</span> = <span style="color: #cc66cc;">25</span>;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$jesse</span> &amp;gt; <span style="color: #0000ff;">$joe</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Jesse is older than Joe'</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Joe is older than Jesse'</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">$names</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Joe'</span>, <span style="color: #ff0000;">'Jesse'</span>, <span style="color: #ff0000;">'Jenny'</span>, <span style="color: #ff0000;">'Justine'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$names</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$name</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #0000ff;">$name</span> . <span style="color: #ff0000;">'
'</span>;
<span style="color: #66cc66;">&#125;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/general-programming-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Project Management &amp; PHP Groupware</title>
		<link>http://html-website.com/php-project-management-for-freelancers/</link>
		<comments>http://html-website.com/php-project-management-for-freelancers/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 13:56:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[groupware]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[project management]]></category>

		<guid isPermaLink="false">http://html-website.com/?p=200</guid>
		<description><![CDATA[There is a new project in town called freelancerKit.
I've tinkered with the demo and seems practical and easy to use. There have been a lot of Project Management programs put together, recently the ever popular BaseCamp HQ and Active Collab.
I suppose the difference with this one is the simplicity, and affordable one time price. It's [...]]]></description>
			<content:encoded><![CDATA[<p>There is a new project in town called <a href="http://www.freelancerkit.com" target="_blank"><strong>freelancerKit</strong></a>.</p>
<p>I've tinkered with the demo and seems practical and easy to use. There have been a lot of Project Management programs put together, recently the ever popular BaseCamp HQ and Active Collab.</p>
<p>I suppose the difference with this one is the simplicity, and affordable one time price. It's targeted more at freelancers but seems to work with a company as it offers Employee user permissions as well.</p>
<p>The short description of freelancerKit is that it is a <strong>PHP Project Management</strong>, PHP Groupware, PHP Collaboration, Note taking and File Management.</p>
<p><img class="aligncenter" title="freelancerKit" src="http://www.freelancerkit.com/public/images/slide-2.jpg" alt="" width="700" height="300" /></p>
<p><strong>Check it out <a href="http://www.freelancerkit.com/">here</a>.<br />
And the demo <a href="http://www.freelancerkit.com/demo">here</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://html-website.com/php-project-management-for-freelancers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
