<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Creating a Facebook-like Registration Form with jQuery</title>
	<atom:link href="http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/</link>
	<description>Web Development Tutorials &#38; Resources</description>
	<lastBuildDate>Thu, 09 Feb 2012 20:52:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: RobNHood63</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-21572</link>
		<dc:creator>RobNHood63</dc:creator>
		<pubDate>Tue, 17 Jan 2012 04:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-21572</guid>
		<description>You shouldn&#039;t use mysql_real_escape_string directly on the $_POST variable unless a connection to the database has already been established it needs to be linked to your database function. One way is to return a link_id from your connect function which I see is also not there. An example would be $link_id = mysql_connect ($server,$username,$password) then select database mysql_select_db ($database_name,$link_id ) escape your data $email = mysql_real_escape_string($_POST[&#039;email&#039;],$link_id);
query database  mysql_query(&quot;SELECT * FROM `users` WHERE username = &#039;$email&#039;&quot;) then check mysql_affected_rows($link_id) for the count returned by the query. You can ommit the $link_id on the mysql functions but you still need to connect to the database before you can use them including any escaping of input.</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t use mysql_real_escape_string directly on the $_POST variable unless a connection to the database has already been established it needs to be linked to your database function. One way is to return a link_id from your connect function which I see is also not there. An example would be $link_id = mysql_connect ($server,$username,$password) then select database mysql_select_db ($database_name,$link_id ) escape your data $email = mysql_real_escape_string($_POST['email'],$link_id);<br />
query database  mysql_query(&#8220;SELECT * FROM `users` WHERE username = &#8216;$email&#8217;&#8221;) then check mysql_affected_rows($link_id) for the count returned by the query. You can ommit the $link_id on the mysql functions but you still need to connect to the database before you can use them including any escaping of input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobNHood63</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-21567</link>
		<dc:creator>RobNHood63</dc:creator>
		<pubDate>Mon, 16 Jan 2012 23:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-21567</guid>
		<description>You mentioned the fact that because Facebook uses tables it wins it for you. However I disagree. Zuckerberg may be a genius when it comes down to marketing but the pages of Facebook is so riddled with erorrs and bad programming it renders the fact that whatever Facebook conciders good practice is isually the opposite. No one is happy with the way Facebook looks, it&#039;s appearance is bland to say the least. Yet it hardly ever functions properly due to the countless errors on the pages. Zuckerberg  is more interested in turning a profit than what his users think.</description>
		<content:encoded><![CDATA[<p>You mentioned the fact that because Facebook uses tables it wins it for you. However I disagree. Zuckerberg may be a genius when it comes down to marketing but the pages of Facebook is so riddled with erorrs and bad programming it renders the fact that whatever Facebook conciders good practice is isually the opposite. No one is happy with the way Facebook looks, it&#8217;s appearance is bland to say the least. Yet it hardly ever functions properly due to the countless errors on the pages. Zuckerberg  is more interested in turning a profit than what his users think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Punit</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-20986</link>
		<dc:creator>Punit</dc:creator>
		<pubDate>Thu, 15 Dec 2011 14:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-20986</guid>
		<description>nice tutorial as always martin, but i have a question
i need to check for email availability in this form for this i add these lines of code in the submit.php

&lt;pre&gt;

if(isset($_POST[&#039;email&#039;]))
{
	$email = mysql_real_escape_string($_POST[&#039;email&#039;]);
	//if(!empty($email))
	//{	
		require (&quot;db.php&quot;);
		$username_query = mysql_query(&quot;SELECT COUNT(`user_id`) FROM `users` WHERE `username` = &#039;$email&#039;&quot;);
		 $username_result = mysql_result($username_query, 0);
		 if($username_result == 0){

			die(msg(1,&quot;Emails is available.&quot;));
		 }
		 else if($username_result == 1)

			die(msg(0,&quot;email is not available.&quot;));
	}
	
}

&lt;/pre&gt;

and my db.php is a simple database connection.
but this code is not working it only showing the processing button when i m clicking on sign up, can you please tell me what i m doing wrong.</description>
		<content:encoded><![CDATA[<p>nice tutorial as always martin, but i have a question<br />
i need to check for email availability in this form for this i add these lines of code in the submit.php</p>
<pre>

if(isset($_POST['email']))
{
	$email = mysql_real_escape_string($_POST['email']);
	//if(!empty($email))
	//{
		require ("db.php");
		$username_query = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$email'");
		 $username_result = mysql_result($username_query, 0);
		 if($username_result == 0){

			die(msg(1,"Emails is available."));
		 }
		 else if($username_result == 1)

			die(msg(0,"email is not available."));
	}

}
</pre>
<p>and my db.php is a simple database connection.<br />
but this code is not working it only showing the processing button when i m clicking on sign up, can you please tell me what i m doing wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohan</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-18819</link>
		<dc:creator>sohan</dc:creator>
		<pubDate>Wed, 27 Jul 2011 18:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-18819</guid>
		<description>an important issue !!!
if we turn off the browser&#039;s javascript and fillup the form with any invalid data it will be posted to target php file. means validations bypasses</description>
		<content:encoded><![CDATA[<p>an important issue !!!<br />
if we turn off the browser&#8217;s javascript and fillup the form with any invalid data it will be posted to target php file. means validations bypasses</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-13658</link>
		<dc:creator>Rajeev</dc:creator>
		<pubDate>Tue, 14 Dec 2010 17:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-13658</guid>
		<description>Best article published.......
great source of knowledge
Helped me a lot in my project.....
thank You
Keep posting.....</description>
		<content:encoded><![CDATA[<p>Best article published&#8230;&#8230;.<br />
great source of knowledge<br />
Helped me a lot in my project&#8230;..<br />
thank You<br />
Keep posting&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesurge0n</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-9512</link>
		<dc:creator>thesurge0n</dc:creator>
		<pubDate>Wed, 11 Aug 2010 12:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-9512</guid>
		<description>Nice little post...you defo need to add a sample database insert into the mix...I&#039;m in the middle of troubleshooting getting the data into my database...normal methods don&#039;t seem to want to work :) 

I just wanted to make up the numbers so you do...

@Domas

if ( $username_exist &gt; 0 

this just says if there is an email address kick out error so im not suprised it was kicking back an error...</description>
		<content:encoded><![CDATA[<p>Nice little post&#8230;you defo need to add a sample database insert into the mix&#8230;I&#8217;m in the middle of troubleshooting getting the data into my database&#8230;normal methods don&#8217;t seem to want to work :) </p>
<p>I just wanted to make up the numbers so you do&#8230;</p>
<p>@Domas</p>
<p>if ( $username_exist &gt; 0 </p>
<p>this just says if there is an email address kick out error so im not suprised it was kicking back an error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stew P</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-5811</link>
		<dc:creator>Stew P</dc:creator>
		<pubDate>Wed, 26 May 2010 23:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-5811</guid>
		<description>Hi there, great tutorial and managed to get the registration form working fine on a page. I have made a few tweaks such as popping it up in a modal window, dropping a couple of fields i didnt need etc but essentially its works the same. 

Just a quick query about the possibility of having 2 of these forms working from the same page.

Basically I want the registration form popping up in a modal window if the register link is clicked but I also want a link on the same page which pops open a modal window using your form but as a log in form rather than a registration form.

Ive given it a go but cant seem to get it working, there is obviously some conflict somewhere.

Dont really know too much about jquery so really not sure what files I need to edit to get this working - any pointers in the right direction welcome.</description>
		<content:encoded><![CDATA[<p>Hi there, great tutorial and managed to get the registration form working fine on a page. I have made a few tweaks such as popping it up in a modal window, dropping a couple of fields i didnt need etc but essentially its works the same. </p>
<p>Just a quick query about the possibility of having 2 of these forms working from the same page.</p>
<p>Basically I want the registration form popping up in a modal window if the register link is clicked but I also want a link on the same page which pops open a modal window using your form but as a log in form rather than a registration form.</p>
<p>Ive given it a go but cant seem to get it working, there is obviously some conflict somewhere.</p>
<p>Dont really know too much about jquery so really not sure what files I need to edit to get this working &#8211; any pointers in the right direction welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Bob Lagumen</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-5625</link>
		<dc:creator>Oliver Bob Lagumen</dc:creator>
		<pubDate>Thu, 20 May 2010 05:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-5625</guid>
		<description>For production purposes when php.ini&#039;s short_open_tag = Off

File in question: index.php

THESE LINES:

&lt;?php=generate_options(1,12,&#039;callback_month&#039;) ?&gt;
&lt;?php=generate_options(1,31) ?&gt;
&lt;?php=generate_options(date(&#039;Y&#039;),1900) ?&gt;

SHOULD BE CHANGED TO:

&lt;?php echo generate_options(1,12,&#039;callback_month&#039;) ?&gt;
&lt;? phpecho generate_options(1,31) ?&gt;
&lt;?php echo generate_options(date(&#039;Y&#039;),1900) ?&gt;

Overwriting short_open_tags ini_set() is not very usefull, since this setting should be known by PHP before parsing the php-file.
It is better to ALWAYS use &lt;?php instead of relying on short open tags.

Advice research from:

http://bytes.com/topic/php/answers/567880-why-ini_set-short_open_tag-1-didnt-work

http://forums.devnetwork.net/viewtopic.php?f=1&amp;t=107576

Otherwise the Birthday select option fields will not work.

It will increase the Chances for the application to work on different php servers/machines &quot;IF&quot; the download source code will be modified accordingly.

But this is a great resource anyway, without which I would not be able to say a BIG THANKS! : )

Blessings From God!

Oliver Bob Lagumen</description>
		<content:encoded><![CDATA[<p>For production purposes when php.ini&#8217;s short_open_tag = Off</p>
<p>File in question: index.php</p>
<p>THESE LINES:</p>
<p>&lt;?php=generate_options(1,12,&#8217;callback_month&#8217;) ?&gt;<br />
&lt;?php=generate_options(1,31) ?&gt;<br />
&lt;?php=generate_options(date(&#8216;Y&#8217;),1900) ?&gt;</p>
<p>SHOULD BE CHANGED TO:</p>
<p>&lt;?php echo generate_options(1,12,&#8217;callback_month&#8217;) ?&gt;<br />
&lt;? phpecho generate_options(1,31) ?&gt;<br />
&lt;?php echo generate_options(date(&#8216;Y&#8217;),1900) ?&gt;</p>
<p>Overwriting short_open_tags ini_set() is not very usefull, since this setting should be known by PHP before parsing the php-file.<br />
It is better to ALWAYS use &lt;?php instead of relying on short open tags.</p>
<p>Advice research from:</p>
<p>http://bytes.com/topic/php/answers/567880-why-ini_set-short_open_tag-1-didnt-work</p>
<p>http://forums.devnetwork.net/viewtopic.php?f=1&amp;t=107576</p>
<p>Otherwise the Birthday select option fields will not work.</p>
<p>It will increase the Chances for the application to work on different php servers/machines &quot;IF&quot; the download source code will be modified accordingly.</p>
<p>But this is a great resource anyway, without which I would not be able to say a BIG THANKS! : )</p>
<p>Blessings From God!</p>
<p>Oliver Bob Lagumen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deoxys</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-4645</link>
		<dc:creator>Deoxys</dc:creator>
		<pubDate>Wed, 14 Apr 2010 02:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-4645</guid>
		<description>The submit.php from above is a bit wrong. That should be fixed in the Tutorial.
You should write
die(&#039;{&quot;status&quot;: 0, &quot;txt&quot;: &quot;You have to fill in your birthday&quot;}&#039;);
instead of
die(&#039;{status: 0, txt: &quot;You have to fill in your birthday&quot;}&#039;);

(The difference is in the quotes of status and txt)

In the download example this is correct.

And the CSS:
What is that &quot;.formline&quot; Class for? I&#039;ve seen it nowhere in the HTML.

Great Tutorial by the way.</description>
		<content:encoded><![CDATA[<p>The submit.php from above is a bit wrong. That should be fixed in the Tutorial.<br />
You should write<br />
die(&#8216;{&#8220;status&#8221;: 0, &#8220;txt&#8221;: &#8220;You have to fill in your birthday&#8221;}&#8217;);<br />
instead of<br />
die(&#8216;{status: 0, txt: &#8220;You have to fill in your birthday&#8221;}&#8217;);</p>
<p>(The difference is in the quotes of status and txt)</p>
<p>In the download example this is correct.</p>
<p>And the CSS:<br />
What is that &#8220;.formline&#8221; Class for? I&#8217;ve seen it nowhere in the HTML.</p>
<p>Great Tutorial by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Angelov</title>
		<link>http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery/#comment-4182</link>
		<dc:creator>Martin Angelov</dc:creator>
		<pubDate>Sat, 27 Mar 2010 14:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=297#comment-4182</guid>
		<description>Updated to work with jQuery 1.4 and above.</description>
		<content:encoded><![CDATA[<p>Updated to work with jQuery 1.4 and above.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 356/356 objects using apc
Content Delivery Network via cdn.tutorialzine.com

Served from: tutorialzine.com @ 2012-02-09 22:37:39 -->
