<?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>Not A n00b</title>
	<atom:link href="http://notan00b.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://notan00b.com</link>
	<description>Tutorials, Scripts, and Rants</description>
	<lastBuildDate>Sat, 06 Mar 2010 08:29:33 +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>Site is under construction!!!</title>
		<link>http://notan00b.com/2010/03/site-is-under-construction/</link>
		<comments>http://notan00b.com/2010/03/site-is-under-construction/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 03:33:24 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[construction]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=277</guid>
		<description><![CDATA[The site is currently being updated!!!  This is going to be the new layout.  Not only will we be collaborating and working together to post new content, but there will be a script sharing database.  Every registered user will be able to upload their own scripts to share with others.  The [...]]]></description>
			<content:encoded><![CDATA[<p>The site is currently being updated!!!  This is going to be the new layout.  Not only will we be collaborating and working together to post new content, but there will be a script sharing database.  Every registered user will be able to upload their own scripts to share with others.  The scripts will be visible to everyone, and a way to advertise your own work.  The upload portion works, but I am still working on the database, then displaying the info properly.  The ETA for completion is about 2-3 weeks.  Check back often!</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2010/03/site-is-under-construction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update coming!!!</title>
		<link>http://notan00b.com/2010/03/update-coming/</link>
		<comments>http://notan00b.com/2010/03/update-coming/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 00:45:37 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[electronica]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=260</guid>
		<description><![CDATA[I have been busy with lots of stuff, and haven&#8217;t been updating the site as often as I would like.  I will be updating the site over the next couple weeks.  I am going to theme it differently, and am opening it up for collaboration.  I have a few collaborators that will [...]]]></description>
			<content:encoded><![CDATA[<p>I have been busy with lots of stuff, and haven&#8217;t been updating the site as often as I would like.  I will be updating the site over the next couple weeks.  I am going to theme it differently, and am opening it up for collaboration.  I have a few collaborators that will be posting stuff from electronica, hacking, programming, news, games, and other interesting topics.  Keep checking back, and if you are interested in collaborating, let me know and I will discuss it a little more in depth.  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2010/03/update-coming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a &#8220;frilly&#8221; border</title>
		<link>http://notan00b.com/2010/02/making-a-frilly-border/</link>
		<comments>http://notan00b.com/2010/02/making-a-frilly-border/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:59:28 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[blogspot]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[caption]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[frilly]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[header]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=245</guid>
		<description><![CDATA[How to make a border on the top with "frills".  One example: http://gkconover.blogspot.com/]]></description>
			<content:encoded><![CDATA[<div id="attachment_246" class="wp-caption aligncenter" style="width: 310px"><a href="http://notan00b.com/wordpress/wp-content/uploads/2010/02/borderexample.png"><img class="size-medium wp-image-246" title="Example" src="http://notan00b.com/wordpress/wp-content/uploads/2010/02/borderexample-300x23.png" alt="Frilly border example" width="300" height="23" /></a><p class="wp-caption-text">Frilly border example - click to view</p></div>
<p>This is what we are working on today.  There are several ways to do this, some are easier than other.  The easiest way (which we will not be doing) is to make an entire header image with a border that looks like this.  The only problem I have found is that you have to match up the edges of the blog perfectly if you want to make the border work.  Also, you would need a decent graphics program to do anything that is decent looking (paint won&#8217;t cut it).  Since a lot of people don&#8217;t have the $400 Adobe Photoshop CS4, we have come up with a different hack to get it to display.</p>
<p>First off, we need the image of a single border.  I have gone ahead and created it and uploaded it here: http://www.notan00b.com/border.png</p>
<p>Second, we need to edit some serious HTML:</p>
<p>Copy and paste this above  &#8220;#outer-wrapper{&#8221; :</p>
<p>#topborder{<br />
background-image:url(&#8216;http://www.notan00b.com/border.png&#8217;);<br />
background-repeat:repeat-x;<br />
background-position:bottom  left;<br />
width: 960px;<br />
height: 20px;<br />
}<br />
#contentALL{<br />
background:  #fff;<br />
padding:10px;<br />
padding-top:30px;<br />
}</p>
<p>Change #outer-wrapper to look like this:<br />
#outer-wrapper {<br />
width: 960px;<br />
margin:60px  auto;<br />
text-align:left;<br />
font: normal normal 90% Georgia, Times,  serif;<br />
}</p>
<p>Go to the bottom,  and under &#8220;&lt;div id=&#8217;outer-wrapper&#8217;&gt;&#8221;:<br />
&lt;div id=&#8217;topborder&#8217;/&gt;<br />
&lt;div id=&#8217;contentALL&#8217;&gt;</p>
<p>At the bottom edit this  &#8220;&lt;/div&gt;&lt;/div&gt; &lt;!&#8211; end outer-wrapper &#8211;&gt;&#8221;:<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;!&#8211; end outer-wrapper &#8211;&gt;</p>
<p>That&#8217;s it!  Save it and you will have your border.  This is a specific case where the blog content was originally 950px wide.  I changed it to 960px to get the full frill instead of half of one (border.png is 20px wide).  Let me know if it doesn&#8217;t work or if you are experiencing problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2010/02/making-a-frilly-border/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking blogger (blogspot) css content</title>
		<link>http://notan00b.com/2010/02/hacking-blogger-blogspot-css-content/</link>
		<comments>http://notan00b.com/2010/02/hacking-blogger-blogspot-css-content/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:45:56 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[blogspot]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=243</guid>
		<description><![CDATA[I have been working a little bit with blogger content and have a few tips and tricks that I have learned that a lot of n00b bloggers like and are looking for.  I decided to start posting content on different design hacks to help people customize their blog to the way the like it. [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working a little bit with blogger content and have a few tips and tricks that I have learned that a lot of n00b bloggers like and are looking for.  I decided to start posting content on different design hacks to help people customize their blog to the way the like it.  If there is any feature you are looking for, feel free to post it as a comment and I will work towards creating it.  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2010/02/hacking-blogger-blogspot-css-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a BLIND SQL Injection?</title>
		<link>http://notan00b.com/2010/01/what-is-a-blind-sql-injection/</link>
		<comments>http://notan00b.com/2010/01/what-is-a-blind-sql-injection/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 07:34:20 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[1=1]]></category>
		<category><![CDATA[1=2]]></category>
		<category><![CDATA[blind sql]]></category>
		<category><![CDATA[blind sql injection]]></category>
		<category><![CDATA[bsi]]></category>
		<category><![CDATA[get variables]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=241</guid>
		<description><![CDATA[Its been awhile, and I have been pretty busy.  I decided to talk a little bit about a few things I have learned and been working on.  When it comes to website security, most programmers understand what SQL injections are.  The user types something into a form that manipulates the SQL statement [...]]]></description>
			<content:encoded><![CDATA[<p>Its been awhile, and I have been pretty busy.  I decided to talk a little bit about a few things I have learned and been working on.  When it comes to website security, most programmers understand what SQL injections are.  The user types something into a form that manipulates the SQL statement to give them access to certain areas or display the info they want.  Then there are Blind Sql Injections (BSI).  These are much more complicated and considered an advanced penetration technique.  The funny thing is, they are 100% preventable.</p>
<p>So lets start out with the basics, what is it?  It all has to do with the URL bar and <em>get</em> variables.  Let&#8217;s say that my site is &#8220;http://www.mysite.com/&#8221; and I created a script that grabs info out of my database based on it&#8217;s ID in the database.  For example:  &#8220;http://www.mysite.com/index.php?pageid=10&#8243;.  My SQL statement will look like this: &#8220;SELECT * FROM pages WHERE ID=$_GET[id]&#8220;.  Just like a regular SQL Injection, a hacker can submit malicious code using the <em>get</em> variable.</p>
<p>This is where we differ a little from a basic SQL Injection.  In a basic SQL Injection, you simply type <code>' or 'x'='x</code> into a form and it may or may not authenticate you.  Your goal is to get it to toss an error, so that you know your code is not being parsed correctly.</p>
<p>Because we are retrieving info about a page with my example website script, not users, it makes it difficult to authenticate yourself with one line of code like a basic SQL Injection.  There is one thing we can do, and that is to make the SELECT statement true or false.  If my site is vulnerable, all we would need to type in the browser is: &#8220;http://www.mysite.com/index.php?pageid=10 and 1=1&#8243;.  If it isn&#8217;t parsed correctly, my vulnerable code will now look like this: SELECT * FROM pages WHERE ID=10 and 1=1.  That is a true statement so our page will display normally.  Now we try a false statement: &#8220;http://www.mysite.com/index.php?pageid=10 and 1=2&#8243; and our SQL query reads as: SELECT * FROM pages WHERE ID=10 and 1=2.  This statement is false, so it will not grab ANY info from pages.  With no info being grabbed from the database, our page will look significantly different.  Maybe some pictures won&#8217;t be there, or text will be missing, or maybe the entire page will be blank.  If that is the case, then you are in business.</p>
<p>So why is it called BLIND Sql Injection?  Well rather than executing queries directly, like a regular SQL injection, and getting your info directly, you are now blind instead.  You are using true/false statements to guess what the table names are, or manually hash them out using ascii codes and substrings.  It can take hours to get access to a vulnerable site, but there are programs and scripts out there that will do all the work for you so you don&#8217;t even have to think about it.</p>
<p>If you want to know a little bit more about how this works, lets try it out on a vulnerable example: http://www.cblpi.org</p>
<p>Lets say I went to Ann Coulter&#8217;s bio page: http://www.cblpi.org/programs/bio.cfm?ID=15&#038;type=Speaker</p>
<p>We notice that ID=15 and may be vulnerable.  So we test it by typing: http://www.cblpi.org/programs/bio.cfm?ID=15 and 1=1&#038;type=Speaker</p>
<p>Nothing changes!  Let&#8217;s test it again by typing 1=2: http://www.cblpi.org/programs/bio.cfm?ID=15 and 1=2&#038;type=Speaker</p>
<p>Now a blank page appears, so we know that the ID variable isn&#8217;t being parsed correctly.</p>
<p>Lets figure out what version of MySQL it is using BSI using @@version: http://www.cblpi.org/programs/bio.cfm?ID=15 and substring(@@version,1,1)=5&#038;type=Speaker</p>
<p>If its version 5.xxxx it will show up as true!  Does it? No.  Then lets try 4: http://www.cblpi.org/programs/bio.cfm?ID=15 and substring(@@version,1,1)=4&#038;type=Speaker</p>
<p>And know we know they are using version 4.xxxx of MySQL.</p>
<p>Lets try guessing a table name! http://www.cblpi.org/programs/bio.cfm?ID=15 and (select 1 from USERS limit 0,1)=1&#038;type=Speaker</p>
<p>If table USERS exists, it will return 1 and the statement will be TRUE!  Does it?  No it doesn&#8217;t, but it does give us a nice error page saying it doesn&#8217;t exist, with the table name that we are currently selecting out of (PEOPLE).  </p>
<p>So lets validate the code real quick.  We know PEOPLE does exist, so http://www.cblpi.org/programs/bio.cfm?ID=15 and (select 1 from PEOPLE limit 0,1)=1&#038;type=Speaker should be true.</p>
<p>And it is! The page displays normally.  </p>
<p>You can bruteforce guess the table names, or there are many round about ways of detecting them letter by letter using substring and ascii functions.  And once you figure out where the good information is stored, then you can break into those tables and grab it.  </p>
<p>I&#8217;m not here to give you the exact methods on how to bruteforce it or use char codes, but just to give you the basics on what it is.  Know that you know what it is, protect against it!  How hard is it to check for a space? Add slashes? Check if it is an int?  Guys common, these practices are standard when dealing with forms, why not make them standard when dealing with <em>get</em> variables.  Recently (about 4-6 months ago) HyperVM was found to have a BSI vulnerability and within a couple of days, thousands and thousands of VPS servers were hacked and accounts deleted.  It all could have been prevented with just one line of code.</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2010/01/what-is-a-blind-sql-injection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP to create website thumbnails</title>
		<link>http://notan00b.com/2009/09/php-to-create-website-thumbnails/</link>
		<comments>http://notan00b.com/2009/09/php-to-create-website-thumbnails/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 00:46:20 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[frontpage]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[internetexplorer]]></category>
		<category><![CDATA[internetexplorer.application]]></category>
		<category><![CDATA[nails]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[shot]]></category>
		<category><![CDATA[thumb]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=230</guid>
		<description><![CDATA[Want to know how to create a thumbnail/screen shot of a webpage using PHP?  Well check it out here]]></description>
			<content:encoded><![CDATA[<p>Bing.com has an awesome feature that is popping up more and more all over the internet.  Most websites charge for this, as they should.  It isn&#8217;t something that can be done on a normal hosting plan, but can only be done (this way) on a Windows server, where Internet Explorer is installed and you have access to.  There are several ways to do this on Linux servers, but I am going to cover the Windows version.</p>
<p>In order to create an image for a thumbnail, we need to take a screen shot of webpage.  PHP GD class allows us to take screen shots of different windows.  PHP also allows us to control different windows, like Internet Explorer using the COM class.  So basically what we need to do is have PHP open up a window in Internet Explorer, navigate to a website, and then take a picture of that window, then save it/display it.  The tutorial shown on php.net shows exactly how to do this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> COM<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;InternetExplorer.Application&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">HWND</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Visible</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Navigate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.libgd.org&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Still working? */</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Busy</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">com_message_pump</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagegrabwindow</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagepng</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;iesnap.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>So this is SUPPOSED to load libgd.org and take a snap shot and save it to &#8220;iesnap.png&#8221;, and it DOES work, but only if your server allows it to work.  If it doesn&#8217;t you just get a black/blank picture.  </p>
<p>Windows rarely lets one program access another program via the desktop and control it.  By default, Apache isn&#8217;t allowed to open Internet Explorer on windows, so we have to add an exception.  </p>
<ol>
<li>On Vista, click the start button, and in the search box type &#8220;Services&#8221;.  </li>
<li>At the very top, there should be a link under Programs called Services.  Click that link. </li>
<li>It will open up all running services, and you will see Apache running (mine is Apache 2.2, and is the first entry).</li>
<li>Right click on it and select &#8220;Properties&#8221;</li>
<li>Navigate to the &#8220;Log On&#8221; tab</li>
<li>Click the box for &#8220;Allow service to interact with the desktop&#8221;</li>
<li>Save it and close the properties</li>
<li>Right click on Apache again</li>
<li>This time, click restart, and Apache will be restarted with the new features</li>
</ol>
<p>Now run your script again!  Vista pops up a little box alerting the user that a program is interact with the desktop.  Just ignore it and it will disappear in a few seconds.  After the program is complete, go to your web folder and you will see iesnap.png is now an image of a webpage!</p>
<p>Time to make some tweaks!  You will notice that it grabs the ENTIRE screen, meaning the tool bars and everything.  We will need to make a few adjustments to get rid of those.  The first one I made was to make the browser show as a full screen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> COM<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;InternetExplorer.Application&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">HWND</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Visible</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FullScreen</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>That last line will make it display in the fullscreen mode, which takes care of the tool bars at the top, but I still see the footer and the side bar that I want to get rid of.  In order to do this, we need to crop a little, but GD doesn&#8217;t have a simple cropping method.  What I did was copied part of this picture to a new picture and resized it.  Keep in mind, my display settings are going to be different, and will require you to look at your picture and test it out:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$w</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'h'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000088;">$w</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">300</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000088;">$h</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">300</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;www.notan00b.com&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1263</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000088;">$w</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1263</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">780</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000088;">$h</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1263</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> COM<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;InternetExplorer.Application&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">HWND</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Visible</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FullScreen</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Navigate</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">/* Still working?*/</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Busy</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">com_message_pump</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagegrabwindow</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Quit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagepng</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;iesnap.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dest</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imagecreatetruecolor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span><span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Copy</span>
<span style="color: #990000;">imagecopyresized</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dest</span><span style="color: #339933;">,</span> <span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$w</span><span style="color: #339933;">,</span> <span style="color: #000088;">$h</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1263</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">780</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output and free from memory</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Type: image/gif'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagegif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">imagedestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>There we have it.  Even with the GET variables so you can reuse this script for AJAX or any HTML document.  My images were 1280&#215;800.  To remove the bars I scaled it down to 1263&#215;780, and they were removed almost perfectly, but it will be different for everyone.</p>
<p>I would post an example of it, but I am only hosted&#8230; I don&#8217;t actually pay for a VPS or private server just for one little blog.  Sorry folks.  If it was up to me, and I needed this service, I would probably pay a company to do it for me for a simple little website.  If you have a VPS with enough memory, this may work for you.  Good luck, let me know if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2009/09/php-to-create-website-thumbnails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WhosOnline Tutorial now online!</title>
		<link>http://notan00b.com/2009/09/whosonline-tutorial-now-online/</link>
		<comments>http://notan00b.com/2009/09/whosonline-tutorial-now-online/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 21:19:53 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[whosonline]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=227</guid>
		<description><![CDATA[With the success of the WhosOnline PHP script, I have made a quick and simple tutorial on how to use it for whatever you decide.  It is really easy and can be used to do anything from displaying the total number of people online, to displaying all the members names individually.  Take a [...]]]></description>
			<content:encoded><![CDATA[<p>With the success of the WhosOnline PHP script, I have made a quick and simple tutorial on how to use it for whatever you decide.  It is really easy and can be used to do anything from displaying the total number of people online, to displaying all the members names individually.  <a href="http://notan00b.com/tutorials/">Take a look at it in the Tutorials section!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2009/09/whosonline-tutorial-now-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WhosOnline updated again!</title>
		<link>http://notan00b.com/2009/09/whosonline-updated-again/</link>
		<comments>http://notan00b.com/2009/09/whosonline-updated-again/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 00:11:19 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[whosonline]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=217</guid>
		<description><![CDATA[The biggest feature is the ability to show WHO is online, not just a count!!!  Read more]]></description>
			<content:encoded><![CDATA[<p>Due to popular response, I updated WhosOnline.  I changed a few things.  I took out the lazy connection because it was giving to many errors.  You now connect, set the table, update, and then can display the data.  I know, I know, that&#8217;s TWO whole lines more code.  Sorry.</p>
<p>The biggest feature is the ability to show WHO is online, not just a count!!!  You will need to have a variable that has the users login name, which most coders store as a session variable, or a global variable.  Both are perfectly acceptable.  You simply set the users name, update it, and then retrieve the data as an ARRAY.  The array will show who is online, the number of &#8220;Guests&#8221; online, and the number of members, and the overall count of people.    PRETTY SLICK.</p>
<p><a href="http://notan00b.com/code-bin/">Head over to the code bin to check it out!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2009/09/whosonline-updated-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery, PHP, and Forms</title>
		<link>http://notan00b.com/2009/09/jquery-php-and-forms/</link>
		<comments>http://notan00b.com/2009/09/jquery-php-and-forms/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 01:56:57 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=204</guid>
		<description><![CDATA[I decided to put up a quick post on how I have been using jQuery and PHP to process forms for me very easily.  To get started, let me give you a background on what I have been trying to do.  I have a page with a list of info, and I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to put up a quick post on how I have been using jQuery and PHP to process forms for me very easily.  To get started, let me give you a background on what I have been trying to do.  I have a page with a list of info, and I wanted to give the user the option of editing that info using jQuery&#8217;s built in dialog box because it is awesome looking.  There were a few ways to go about doing this, which is what I am going to describe.</p>
<h1>This is the goal!</h1>
<li>I click the link</li>
<li>A dialog box pops up</li>
<li>The text boxes have info filled in already</li>
<li>Something like this:<br />Name:<br />
<input type="text" value="Bob Jones"/></li>
<li>I can edit it, then submit it</li>
<li>I want the code to be small</li>
<p>The first way that I thought of was to create a form for every piece of info I pulled from the database.  So lets say for ID=1, there would be 1 form with all the info preloaded into it.  ID=2 would be a separate form with all different info.  This works, but I had to have about 20 dialog boxes per page, and it would cause the HTML output to be about 20 times larger than I needed.</p>
<p>In my head, I knew there had to be a way to do this with DHTML and jQuery, and I finally figured it out.  All I had to do was create a value and store it in the button that I was already using (well it was actually just a link).  So I turned <code>&lt;a href="#" class="editThis"&gt;Edit!&lt;/a&gt;</code> into <code>&lt;a href="#" class="editThis" id="1"&gt;Edit!&lt;/a&gt;</code>.  I used PHP to echo out the data already but now each link will have a different ID:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>#<span style="color: #000099; font-weight: bold;">\&quot;</span> class<span style="color: #000099; font-weight: bold;">\&quot;</span>editThis<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$row[UserId]</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Edit!&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>So now we have 20 links, each looking the same, but each with a unique ID.  This is where jQuery comes in handy.  We can look up the anchor by class, and then store the ID as a variable for later use!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.editThis&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> id<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>So now we have the ID of the info we want to manipulate.  The next part was a little more difficult to figure out.  I want only 1 dialog box and 1 form, but want the info auto filled.  At first I was thinking we needed to do a lot of AJAX to pull out each and every variable that we want to edit, but then I figured out we could pass that info into HTML as a &#8220;HIDDEN&#8221; variable.  HTML is great because you can hide all sorts of stuff and the user will never see it.  I can set the style as &#8220;hidden&#8221;, or I can include it inside a tag somewhere, or better yet, and my favorite, I can create a hidden variable: <code>&lt;input type="hidden" id="editinfo1" value="myinfohere"&gt;</code>  Now we need to implement this into our PHP to write it to the HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>#<span style="color: #000099; font-weight: bold;">\&quot;</span> class<span style="color: #000099; font-weight: bold;">\&quot;</span>editThis<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$row[UserId]</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Edit!&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>hidden<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; name=<span style="color: #000099; font-weight: bold;">\&quot;</span>editinfo<span style="color: #006699; font-weight: bold;">{$row['UserId']}</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; id=<span style="color: #000099; font-weight: bold;">\&quot;</span>editinfo<span style="color: #006699; font-weight: bold;">{$row['UserId']}</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; value=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$row[Name]</span>::<span style="color: #006699; font-weight: bold;">$row[Address]</span>::<span style="color: #006699; font-weight: bold;">$row[Age]</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>So now our HTML will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot; class=&quot;editThis&quot; id=&quot;1&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;editinfo1&quot; id=&quot;editinfo1&quot; value=&quot;Bob Jones::123 N Street::26&quot;&gt;</pre></div></div>

<p>All our info is now conveniently stored for jQuery to access later!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.editThis&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> id<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #003366; font-weight: bold;">var</span> variables<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#editinfo&quot;</span><span style="color: #339933;">+</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #003366; font-weight: bold;">var</span> info<span style="color: #339933;">=</span>variables.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'::'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">+</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">+</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now for the fun part, using jQuery to dynamically change the values of our SINGLE form!<br />
Our form might look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;dialog&quot; title=&quot;Edit User&quot;&gt;
    &lt;form method=&quot;post&quot; name=&quot;edituserform&quot; action=editUser.php&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;edituser&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;userid&quot; id=&quot;euid&quot; value=&quot;0&quot;&gt;
    &lt;center&gt;
        &lt;table width=&quot;75%&quot;&gt;
            &lt;tr&gt;
                &lt;td align=&quot;right&quot;&gt;User Name: &lt;/td&gt;
                &lt;td align=&quot;left&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;eusername&quot;&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td align=&quot;right&quot;&gt;Address: &lt;/td&gt;
                &lt;td align=&quot;left&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;address&quot; id=&quot;eaddress&quot;&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td align=&quot;right&quot;&gt;Age: &lt;/td&gt;
                &lt;td align=&quot;left&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;age&quot; id=&quot;eage&quot;&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/center&gt;
    &lt;/form&gt;
&lt;/div&gt;</pre></div></div>

<p>And our jQuery would look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.editThis&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> id<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #003366; font-weight: bold;">var</span> variables<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#editinfo&quot;</span><span style="color: #339933;">+</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #003366; font-weight: bold;">var</span> info<span style="color: #339933;">=</span>variables.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'::'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#eusername&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#eaddress&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#eage&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>info<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;euid&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#dialog&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;open&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dialog'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        autoOpen<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
        width<span style="color: #339933;">:</span> <span style="color: #CC0000;">600</span><span style="color: #339933;">,</span>
        modal<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        position<span style="color: #339933;">:</span> <span style="color: #3366CC;">'top'</span><span style="color: #339933;">,</span>
        buttons<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #3366CC;">&quot;Update user&quot;</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                document.<span style="color: #660066;">edituserform</span>.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> 
            <span style="color: #3366CC;">&quot;Cancel&quot;</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
                $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;close&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
            <span style="color: #009900;">&#125;</span> 
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>That&#8217;s it!  Hopefully it was easy to understand.  Let me know if you need anything cleared up a little!  Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2009/09/jquery-php-and-forms/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Tutorial [Part 2] underway!</title>
		<link>http://notan00b.com/2009/08/php-tutorial-part-2-underway/</link>
		<comments>http://notan00b.com/2009/08/php-tutorial-part-2-underway/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 20:08:21 +0000</pubDate>
		<dc:creator>pyr0t3chnician</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[2]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[part]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://notan00b.com/?p=201</guid>
		<description><![CDATA[Its been a while since I got an update up.  I started working on the second part of my PHP tutorial.  I plan on covering functions, arrays, and get/post variables for now.  I will probably have a third part eventually covering advanced topics like classes, sessions, cookies, files, mysql, and stuff like [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while since I got an update up.  I started working on the second part of my PHP tutorial.  I plan on covering functions, arrays, and get/post variables for now.  I will probably have a third part eventually covering advanced topics like classes, sessions, cookies, files, mysql, and stuff like that.  For now though, I am going to finish the basics.  I posted the first draft in the tutorial section.  I will update it for the next couple days until I get it completed to my satisfaction.  Check it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://notan00b.com/2009/08/php-tutorial-part-2-underway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
