<?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: Ajax Forms with jQuery</title>
	<atom:link href="http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/</link>
	<description>Doing That Web Standards Thing</description>
	<lastBuildDate>Tue, 09 Mar 2010 02:06:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ricky</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4705</link>
		<dc:creator>ricky</dc:creator>
		<pubDate>Mon, 08 Mar 2010 11:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4705</guid>
		<description>Jquery Form Applications; A great compilation...
http://www.ueuh.com/internet/jquery-form-applications/</description>
		<content:encoded><![CDATA[<p>Jquery Form Applications; A great compilation&#8230;<br />
<a href="http://www.ueuh.com/internet/jquery-form-applications/" rel="nofollow">http://www.ueuh.com/internet/jquery-form-applications/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 25 jQuery Tutorials for Creating and Working with Forms &#124; Son Of Byte - Web Design &#38; Development</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4689</link>
		<dc:creator>25 jQuery Tutorials for Creating and Working with Forms &#124; Son Of Byte - Web Design &#38; Development</dc:creator>
		<pubDate>Thu, 04 Mar 2010 23:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4689</guid>
		<description>[...] Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Php Catalog</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4676</link>
		<dc:creator>Php Catalog</dc:creator>
		<pubDate>Wed, 03 Mar 2010 08:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4676</guid>
		<description>Awesome..it helped me alot..</description>
		<content:encoded><![CDATA[<p>Awesome..it helped me alot..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soumya</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4649</link>
		<dc:creator>soumya</dc:creator>
		<pubDate>Fri, 26 Feb 2010 05:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4649</guid>
		<description>how to get the anser immediately while typing the question itself but without pressing the submit button  or enter button,using java script?</description>
		<content:encoded><![CDATA[<p>how to get the anser immediately while typing the question itself but without pressing the submit button  or enter button,using java script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meble</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4647</link>
		<dc:creator>Meble</dc:creator>
		<pubDate>Thu, 25 Feb 2010 09:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4647</guid>
		<description>Very nice tutorial :)</description>
		<content:encoded><![CDATA[<p>Very nice tutorial :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 25 jQuery Tutorials for Creating and Working with Forms &#171; Freelance Web Designer from Hyderabad, India.</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4643</link>
		<dc:creator>25 jQuery Tutorials for Creating and Working with Forms &#171; Freelance Web Designer from Hyderabad, India.</dc:creator>
		<pubDate>Tue, 23 Feb 2010 19:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4643</guid>
		<description>[...] Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob S</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4634</link>
		<dc:creator>Bob S</dc:creator>
		<pubDate>Mon, 22 Feb 2010 03:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4634</guid>
		<description>You know, the light bulb started to go on shortly after my last post to you....I did start out with those files, and won&#039;t go into the series of absolutely boneheaded mistakes that lead me here for help this afternoon, but suffice it to say it all started with forgetting to turn off &quot;display_errors&quot; in my php.ini this morning after troubleshooting another script. My money says that you can probably piece it together from there...

Anyway, all sorted out now. Your form works great, and your help has been greatly appreciated.

Thanks,
-B</description>
		<content:encoded><![CDATA[<p>You know, the light bulb started to go on shortly after my last post to you&#8230;.I did start out with those files, and won&#8217;t go into the series of absolutely boneheaded mistakes that lead me here for help this afternoon, but suffice it to say it all started with forgetting to turn off &#8220;display_errors&#8221; in my php.ini this morning after troubleshooting another script. My money says that you can probably piece it together from there&#8230;</p>
<p>Anyway, all sorted out now. Your form works great, and your help has been greatly appreciated.</p>
<p>Thanks,<br />
-B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4633</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 22 Feb 2010 02:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4633</guid>
		<description>@&lt;a href=&quot;#comment-4632&quot; rel=&quot;nofollow&quot;&gt;Bob S&lt;/a&gt;-
Did you download the files at the end of the post? That should answer all of your questions.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4632" rel="nofollow">Bob S</a>-<br />
Did you download the files at the end of the post? That should answer all of your questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob S</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4632</link>
		<dc:creator>Bob S</dc:creator>
		<pubDate>Mon, 22 Feb 2010 02:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4632</guid>
		<description>Hey Trevor,

The thing that&#039;s throwing me is that in your non-ajax demo, the form action just refers back to itself.

http://trevordavis.net/play/jqueryAjaxForm/

There&#039;s no apparent link to either a form processor or validation script/verify.php  in your non-ajax example, bringing me to the questions:

1 - where/how is the form procesing being done?

2 - where/how is form validation being carried out?

There&#039;s obviously something very basic I&#039;m missing here....

Thanks,
-Bob S</description>
		<content:encoded><![CDATA[<p>Hey Trevor,</p>
<p>The thing that&#8217;s throwing me is that in your non-ajax demo, the form action just refers back to itself.</p>
<p><a href="http://trevordavis.net/play/jqueryAjaxForm/" rel="nofollow">http://trevordavis.net/play/jqueryAjaxForm/</a></p>
<p>There&#8217;s no apparent link to either a form processor or validation script/verify.php  in your non-ajax example, bringing me to the questions:</p>
<p>1 &#8211; where/how is the form procesing being done?</p>
<p>2 &#8211; where/how is form validation being carried out?</p>
<p>There&#8217;s obviously something very basic I&#8217;m missing here&#8230;.</p>
<p>Thanks,<br />
-Bob S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4631</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 22 Feb 2010 02:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4631</guid>
		<description>@&lt;a href=&quot;#comment-4630&quot; rel=&quot;nofollow&quot;&gt;Bob S.&lt;/a&gt;-
In this example, you have to duplicate the validation, just like I did. But the actual sending of the email is using the same code.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4630" rel="nofollow">Bob S.</a>-<br />
In this example, you have to duplicate the validation, just like I did. But the actual sending of the email is using the same code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob S.</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4630</link>
		<dc:creator>Bob S.</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4630</guid>
		<description>Hi Trevor,

Question - your form works properly on my server with javascript enables in my browser. However, if I disable javascript, the form stops working, ie no validation, no success message and no email on the recipient end.

I&#039;ve noticed that the form action of your Ajaxed demo points to the non-Ajax version of the form. My question is whether I will need to run two copies of the form - one ajax, one non-ajax - in order to accommodate my non-javascript users, or is the Ajax version form supposed to degrade?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Trevor,</p>
<p>Question &#8211; your form works properly on my server with javascript enables in my browser. However, if I disable javascript, the form stops working, ie no validation, no success message and no email on the recipient end.</p>
<p>I&#8217;ve noticed that the form action of your Ajaxed demo points to the non-Ajax version of the form. My question is whether I will need to run two copies of the form &#8211; one ajax, one non-ajax &#8211; in order to accommodate my non-javascript users, or is the Ajax version form supposed to degrade?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#124; amazingtippo</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4626</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#124; amazingtippo</dc:creator>
		<pubDate>Sun, 21 Feb 2010 09:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4626</guid>
		<description>[...] 19. Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 19. Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#171; Free PHP Scripts, js framework and ajax</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4625</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#171; Free PHP Scripts, js framework and ajax</dc:creator>
		<pubDate>Sun, 21 Feb 2010 03:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4625</guid>
		<description>[...] 19. Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 19. Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4618</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Wed, 17 Feb 2010 00:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4618</guid>
		<description>@&lt;a href=&quot;#comment-4617&quot; rel=&quot;nofollow&quot;&gt;Kreshnik Pacara&lt;/a&gt;-
You just need to duplicate what was done for another field. If you read through the comments, you will probably find more help too.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4617" rel="nofollow">Kreshnik Pacara</a>-<br />
You just need to duplicate what was done for another field. If you read through the comments, you will probably find more help too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreshnik Pacara</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4617</link>
		<dc:creator>Kreshnik Pacara</dc:creator>
		<pubDate>Tue, 16 Feb 2010 23:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4617</guid>
		<description>hello, could anyone tell me which are the steps if i would like to add another box called &quot;Name&quot; at this contact form:

http://klaudiaconstruction-al.com/contact.php
thanks
nik</description>
		<content:encoded><![CDATA[<p>hello, could anyone tell me which are the steps if i would like to add another box called &#8220;Name&#8221; at this contact form:</p>
<p><a href="http://klaudiaconstruction-al.com/contact.php" rel="nofollow">http://klaudiaconstruction-al.com/contact.php</a><br />
thanks<br />
nik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4616</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4616</guid>
		<description>@&lt;a href=&quot;#comment-4615&quot; rel=&quot;nofollow&quot;&gt;Kreshnik Pacara&lt;/a&gt;-
You should talk to your host about that.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4615" rel="nofollow">Kreshnik Pacara</a>-<br />
You should talk to your host about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreshnik Pacara</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4615</link>
		<dc:creator>Kreshnik Pacara</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4615</guid>
		<description>@&lt;a href=&quot;#comment-4614&quot; rel=&quot;nofollow&quot;&gt;Trevor&lt;/a&gt;-
placement of the message and subject resolved but the only one thing is comes to JUNK FOLDER.
thank you  so much</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4614" rel="nofollow">Trevor</a>-<br />
placement of the message and subject resolved but the only one thing is comes to JUNK FOLDER.<br />
thank you  so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreshnik Pacara</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4614</link>
		<dc:creator>Kreshnik Pacara</dc:creator>
		<pubDate>Tue, 16 Feb 2010 20:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4614</guid>
		<description>@&lt;a href=&quot;#comment-4610&quot; rel=&quot;nofollow&quot;&gt;Trevor&lt;/a&gt;-
thanks Sir. i fixed the problem but another problem came :(    sorry for disturbing you so much but i really love your contact form ...!
At the sendEmail.php i added my e-mail address and when i test my contact form all e-mails comes to Junk Folder and the message look like this:

http://img237.imageshack.us/img237/295/emailfrom.jpg

at the host provider is a solution about host admin e-mail: 

http://helpdesk.fastdomain.com/index.php/kb/article/206

and i did the solution 2 but the solution 1 i really don&#039;t know how to do...?! :(

At the sendEmail.php this is what is written:




Wish you best regards...
God bless you</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4610" rel="nofollow">Trevor</a>-<br />
thanks Sir. i fixed the problem but another problem came :(    sorry for disturbing you so much but i really love your contact form &#8230;!<br />
At the sendEmail.php i added my e-mail address and when i test my contact form all e-mails comes to Junk Folder and the message look like this:</p>
<p><a href="http://img237.imageshack.us/img237/295/emailfrom.jpg" rel="nofollow">http://img237.imageshack.us/img237/295/emailfrom.jpg</a></p>
<p>at the host provider is a solution about host admin e-mail: </p>
<p><a href="http://helpdesk.fastdomain.com/index.php/kb/article/206" rel="nofollow">http://helpdesk.fastdomain.com/index.php/kb/article/206</a></p>
<p>and i did the solution 2 but the solution 1 i really don&#8217;t know how to do&#8230;?! :(</p>
<p>At the sendEmail.php this is what is written:</p>
<p>Wish you best regards&#8230;<br />
God bless you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4610</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 15 Feb 2010 01:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4610</guid>
		<description>@&lt;a href=&quot;#comment-4609&quot; rel=&quot;nofollow&quot;&gt;Kreshnik Pacara&lt;/a&gt;-
You can&#8217;t have PHP code on an HTML page.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4609" rel="nofollow">Kreshnik Pacara</a>-<br />
You can&rsquo;t have PHP code on an HTML page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreshnik Pacara</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4609</link>
		<dc:creator>Kreshnik Pacara</dc:creator>
		<pubDate>Sun, 14 Feb 2010 23:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4609</guid>
		<description>@&lt;a href=&quot;#comment-4605&quot; rel=&quot;nofollow&quot;&gt;Trevor&lt;/a&gt;-
SIR i told you it is showing me the PHP code at the input box i swear i am getting mad cuz i really like you from the way how it flip up on submit. if you can check would be great Trevor, please have a look at klaudiaconstruction-al.com/contact.html 
from which address are supposed to come those comments at my website contact form??</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4605" rel="nofollow">Trevor</a>-<br />
SIR i told you it is showing me the PHP code at the input box i swear i am getting mad cuz i really like you from the way how it flip up on submit. if you can check would be great Trevor, please have a look at klaudiaconstruction-al.com/contact.html<br />
from which address are supposed to come those comments at my website contact form??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4605</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sun, 14 Feb 2010 16:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4605</guid>
		<description>@&lt;a href=&quot;#comment-4604&quot; rel=&quot;nofollow&quot;&gt;Kreshnik&lt;/a&gt;-
You already emailed me and did not give any details about what is not working. It&#8217;s challenging for anyone to help if you don&#8217;t provide any information about what isn&#8217;t working.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4604" rel="nofollow">Kreshnik</a>-<br />
You already emailed me and did not give any details about what is not working. It&rsquo;s challenging for anyone to help if you don&rsquo;t provide any information about what isn&rsquo;t working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kreshnik</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4604</link>
		<dc:creator>Kreshnik</dc:creator>
		<pubDate>Sun, 14 Feb 2010 15:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4604</guid>
		<description>hi i am new to coding and i was just wondering why in my contact form it is showing me the PHP code at the &quot;&quot; box.  this is my contact.html code:
&lt;pre&gt;&lt;code&gt;Kontaktoni &#124; Klaudia Construction 

&lt;!-- Form validation  starts here--&gt;

&lt;!-- Form validation ends here--&gt;


    $(document).ready(function(){
        $(document).pngFix();
    });


&lt;!--[if lt IE 8.]&gt;--&gt;

 &lt;!--[if lt IE 7.]&gt;--&gt;

&lt;!-- Content Slider --&gt;
		var flashvars = {};
		flashvars.xml = &quot;config.xml&quot;;
		flashvars.font = &quot;font.swf&quot;;
		var attributes = {};
		attributes.wmode = &quot;transparent&quot;;
		attributes.id = &quot;slider&quot;;
		swfobject.embedSWF(&quot;design3edge.swf&quot;, &quot;content_slider&quot;, &quot;575&quot;, &quot;265&quot;, &quot;9&quot;, &quot;expressInstall.swf&quot;, flashvars, attributes);


&lt;!-- Content Slider --&gt;

&lt;!-- Main Body Starts Here --&gt;

&lt;!-- Header Starts Here --&gt;

&lt;!-- Header Top --&gt;

&lt;!-- Header Top --&gt;

&lt;!-- Header Body Starts Here --&gt;

&lt;!-- Header Left Part Starts Here --&gt;

&lt;!-- Logo Starts Here--&gt;

&lt;a href=&quot;index.html&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

&lt;!-- Logo Ends Here --&gt;

&lt;!-- Divider Starts Here --&gt;

&lt;!-- Divider Ends Here --&gt;

&lt;!-- Menu Links Starts Here --&gt;
&lt;a href=&quot;index.html&quot; rel=&quot;nofollow&quot;&gt;Hyrje&lt;/a&gt;
&lt;a href=&quot;about.html&quot; rel=&quot;nofollow&quot;&gt;Rreth Nesh&lt;/a&gt;
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Sherbime&lt;/a&gt;
&lt;a href=&quot;clients.html&quot; rel=&quot;nofollow&quot;&gt;Kliente&lt;/a&gt;
&lt;a href=&quot;contact.html&quot; rel=&quot;nofollow&quot;&gt;Kontaktoni&lt;/a&gt;
&lt;!-- Menu Links Ends Here --&gt;

&lt;!-- Header Left Part Ends Here --&gt;

&lt;!-- Header Right Part Starts Here--&gt;

&lt;!-- Content Slider Starts Here --&gt;
&lt;a href=&quot;http://www.adobe.com/go/getflashplayer&quot; rel=&quot;nofollow&quot;&gt;        
    &lt;/a&gt;
&lt;!-- Content Slider Ends Here --&gt;

&lt;!-- Header Right Part Ends Here --&gt;

&lt;!-- Header Body Ends Here --&gt;

&lt;!-- Header Bottom--&gt;

&lt;!-- Header Bottom --&gt;

&lt;!-- Header Ends here --&gt;

&lt;!-- Content Body Starts here --&gt;

&lt;!-- Left Content Starts Here --&gt;

&lt;!-- Heading --&gt;

CONTACT US

&lt;!-- Heading --&gt;

&quot;Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis, 
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus
dolor diam viverra mi&quot;

Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis,
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus 
dolor diam viverra mi.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pulvinar nisi eu enim facilisis dapibus.
Duis viverra turpis vitae dui tincidunt eleifend. Etiam sodales, neque in dignissim dictum, dui libero
dictum orci, vel cursus felis velit vitae dui. 

Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis, 
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus
dolor diam viverra mi. Aenean porttitor, lectus at dapibus egestas, tellus ipsum
rhoncus orci.

&lt;!-- Form Starts Here --&gt;
		Send An Email
		* All fields are required
		
		    From&lt;input type=&quot;text&quot; name=&quot;emailFrom&quot; id=&quot;emailFrom&quot; value=&quot;&lt;?php if(isset($emailFromError)) echo &#039;&#039;.$emailFromError.&#039;&#039;; ?&gt;
			Subject&lt;input type=&quot;text&quot; name=&quot;subject&quot; id=&quot;subject&quot; value=&quot;&lt;?php if(isset($subjectError)) echo &#039;&#039;.$subjectError.&#039;&#039;; ?&gt;
			Message&lt;?php if(isset($messageError)) echo &#039;&#039;.$messageError.&#039;&#039;; ?&gt;
			Send Email &#187;
&lt;!-- Form Ends Here --&gt;

&lt;!-- Left Content Ends Here --&gt;

&lt;!-- Right Content Starts Here --&gt;

&lt;!-- Contacts Starts Here --&gt;
&lt;!-- Heading --&gt;
Kontaktoni:
&lt;!-- Heading --&gt;

Klaudia Shpk
Rr. Muhamet Gjollesha 
P.56 Sh.1 Ap.8
Tirana-Shqiperi
Telefon: &lt;b&gt;+355 - 682066757&lt;/b&gt;
Telefon: &lt;b&gt;+355 - 682055758&lt;/b&gt;
Email: &lt;b&gt;klaudia.shpk@yahoo.com&lt;/b&gt;
Email: &lt;b&gt;mrdajti@yahoo.it&lt;/b&gt;
&lt;!-- Contacts Ends Here --&gt;

&lt;!-- Testimonial Starts Here --&gt;
&lt;a href=&quot;http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Tirane&amp;sll=51.520755,-0.158628&amp;sspn=0.005795,0.013797&amp;ie=UTF8&amp;hq=&amp;hnear=Tirana,+Albania&amp;ll=41.329518,19.806247&amp;spn=0.009668,0.012875&amp;z=15&amp;iwloc=A&quot; rel=&quot;nofollow&quot;&gt;View Larger Map&lt;/a&gt;
&lt;!-- Testimonial Ends Here --&gt;

&lt;!-- Follow Us Starts Here --&gt;

&lt;!-- Heading --&gt;
FOLLOW US ON
&lt;!-- Heading --&gt;

&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt; &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;
 &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

&lt;!-- Follow Us Ends Here --&gt;

&lt;!-- Right Content Ends Here --&gt;

&lt;!-- Clear --&gt;

&lt;!-- Clear --&gt;

&lt;!-- Content Body Ends Here --&gt;

&lt;!-- Footer Starts Here --&gt;

&lt;!-- Top --&gt;

&lt;!-- Content --&gt;
&lt;a href=&quot;index.html&quot; rel=&quot;nofollow&quot;&gt;Hyrje&lt;/a&gt; &#124; &lt;a href=&quot;about.html&quot; rel=&quot;nofollow&quot;&gt;Rreth Nesh&lt;/a&gt; &#124; &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Sherbime&lt;/a&gt; &#124;
&lt;a href=&quot;clients.html&quot; rel=&quot;nofollow&quot;&gt;Kliente&lt;/a&gt; &#124; &lt;a href=&quot;contact.html&quot; rel=&quot;nofollow&quot;&gt;Kontaktoni&lt;/a&gt;

&#169; Copyright 2010. Klaudiaconstruction-al. All Rights Reserved

&lt;!-- Clear --&gt;

&lt;!-- Clear --&gt;

&lt;!-- Content --&gt;

&lt;!-- Bottom --&gt;

&lt;!-- Footer Ends Here --&gt;

&lt;!-- Main Body Ends Here --&gt;&lt;/code&gt;&lt;/pre&gt;

please help me how to fix it...
regards
Nik</description>
		<content:encoded><![CDATA[<p>hi i am new to coding and i was just wondering why in my contact form it is showing me the PHP code at the &#8220;&#8221; box.  this is my contact.html code:</p>
<pre><code>Kontaktoni | Klaudia Construction 

<!-- Form validation  starts here-->

<!-- Form validation ends here-->

    $(document).ready(function(){
        $(document).pngFix();
    });

<!--[if lt IE 8.]&gt;-->

 <!--[if lt IE 7.]&gt;-->

<!-- Content Slider -->
		var flashvars = {};
		flashvars.xml = "config.xml";
		flashvars.font = "font.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("design3edge.swf", "content_slider", "575", "265", "9", "expressInstall.swf", flashvars, attributes);

<!-- Content Slider -->

<!-- Main Body Starts Here -->

<!-- Header Starts Here -->

<!-- Header Top -->

<!-- Header Top -->

<!-- Header Body Starts Here -->

<!-- Header Left Part Starts Here -->

<!-- Logo Starts Here-->

<a href="index.html" rel="nofollow"></a>

<!-- Logo Ends Here -->

<!-- Divider Starts Here -->

<!-- Divider Ends Here -->

<!-- Menu Links Starts Here -->
<a href="index.html" rel="nofollow">Hyrje</a>
<a href="about.html" rel="nofollow">Rreth Nesh</a>
<a href="#" rel="nofollow">Sherbime</a>
<a href="clients.html" rel="nofollow">Kliente</a>
<a href="contact.html" rel="nofollow">Kontaktoni</a>
<!-- Menu Links Ends Here -->

<!-- Header Left Part Ends Here -->

<!-- Header Right Part Starts Here-->

<!-- Content Slider Starts Here -->
<a href="http://www.adobe.com/go/getflashplayer" rel="nofollow">
    </a>
<!-- Content Slider Ends Here -->

<!-- Header Right Part Ends Here -->

<!-- Header Body Ends Here -->

<!-- Header Bottom-->

<!-- Header Bottom -->

<!-- Header Ends here -->

<!-- Content Body Starts here -->

<!-- Left Content Starts Here -->

<!-- Heading -->

CONTACT US

<!-- Heading -->

"Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis,
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus
dolor diam viverra mi"

Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis,
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus
dolor diam viverra mi.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pulvinar nisi eu enim facilisis dapibus.
Duis viverra turpis vitae dui tincidunt eleifend. Etiam sodales, neque in dignissim dictum, dui libero
dictum orci, vel cursus felis velit vitae dui. 

Vivamus sit amet odio pellentesque odio faucibus tristique. Morbi facilisis,
ligula a faucibus pellentesque, orci justo consequat massa, sit amet dapibus
dolor diam viverra mi. Aenean porttitor, lectus at dapibus egestas, tellus ipsum
rhoncus orci.

<!-- Form Starts Here -->
		Send An Email
		* All fields are required

		    From&lt;input type=&quot;text&quot; name=&quot;emailFrom&quot; id=&quot;emailFrom&quot; value=&quot;&lt;?php if(isset($emailFromError)) echo &#039;'.$emailFromError.''; ?&gt;
			Subject&lt;input type=&quot;text&quot; name=&quot;subject&quot; id=&quot;subject&quot; value=&quot;&lt;?php if(isset($subjectError)) echo &#039;'.$subjectError.''; ?&gt;
			Message&lt;?php if(isset($messageError)) echo &#039;'.$messageError.''; ?&gt;
			Send Email &raquo;
<!-- Form Ends Here -->

<!-- Left Content Ends Here -->

<!-- Right Content Starts Here -->

<!-- Contacts Starts Here -->
<!-- Heading -->
Kontaktoni:
<!-- Heading -->

Klaudia Shpk
Rr. Muhamet Gjollesha
P.56 Sh.1 Ap.8
Tirana-Shqiperi
Telefon: <b>+355 - 682066757</b>
Telefon: <b>+355 - 682055758</b>
Email: <b><a href="mailto:klaudia.shpk@yahoo.com">klaudia.shpk@yahoo.com</a></b>
Email: <b><a href="mailto:mrdajti@yahoo.it">mrdajti@yahoo.it</a></b>
<!-- Contacts Ends Here -->

<!-- Testimonial Starts Here -->
<a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Tirane&amp;sll=51.520755,-0.158628&amp;sspn=0.005795,0.013797&amp;ie=UTF8&amp;hq=&amp;hnear=Tirana,+Albania&amp;ll=41.329518,19.806247&amp;spn=0.009668,0.012875&amp;z=15&amp;iwloc=A" rel="nofollow">View Larger Map</a>
<!-- Testimonial Ends Here -->

<!-- Follow Us Starts Here -->

<!-- Heading -->
FOLLOW US ON
<!-- Heading -->

<a href="#" rel="nofollow"></a> <a href="#" rel="nofollow"></a>
 <a href="#" rel="nofollow"></a>

<!-- Follow Us Ends Here -->

<!-- Right Content Ends Here -->

<!-- Clear -->

<!-- Clear -->

<!-- Content Body Ends Here -->

<!-- Footer Starts Here -->

<!-- Top -->

<!-- Content -->
<a href="index.html" rel="nofollow">Hyrje</a> | <a href="about.html" rel="nofollow">Rreth Nesh</a> | <a href="#" rel="nofollow">Sherbime</a> |
<a href="clients.html" rel="nofollow">Kliente</a> | <a href="contact.html" rel="nofollow">Kontaktoni</a>

&copy; Copyright 2010. Klaudiaconstruction-al. All Rights Reserved

<!-- Clear -->

<!-- Clear -->

<!-- Content -->

<!-- Bottom -->

<!-- Footer Ends Here -->

<!-- Main Body Ends Here --></code></pre>
<p>please help me how to fix it&#8230;<br />
regards<br />
Nik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Web Developers, Anyone! &#171; Web Design</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4594</link>
		<dc:creator>30 AJAX Tutorials For Web Developers, Anyone! &#171; Web Design</dc:creator>
		<pubDate>Thu, 11 Feb 2010 20:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4594</guid>
		<description>[...] 19. Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 19. Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4593</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Thu, 11 Feb 2010 12:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4593</guid>
		<description>@&lt;a href=&quot;#comment-4592&quot; rel=&quot;nofollow&quot;&gt;Jason&lt;/a&gt;-
Instead of inserting the spans, just add a class to the form field.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4592" rel="nofollow">Jason</a>-<br />
Instead of inserting the spans, just add a class to the form field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4592</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 11 Feb 2010 12:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4592</guid>
		<description>How would you change the background color of the input field when there is an error (instead of having the error message appear as text)?

Thanks.</description>
		<content:encoded><![CDATA[<p>How would you change the background color of the input field when there is an error (instead of having the error message appear as text)?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4583</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 09 Feb 2010 20:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4583</guid>
		<description>I had a look at a BUNCH of other options, but yours won out based on ease of use, lightness of the code and accessibility. Thanks for posting it!!

My version is in coldfusion, and equally accessible as the one you&#039;ve made. If anyone ever needs the cfm code, let me know, I&#039;m happy to share.</description>
		<content:encoded><![CDATA[<p>I had a look at a BUNCH of other options, but yours won out based on ease of use, lightness of the code and accessibility. Thanks for posting it!!</p>
<p>My version is in coldfusion, and equally accessible as the one you&#8217;ve made. If anyone ever needs the cfm code, let me know, I&#8217;m happy to share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4578</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 08 Feb 2010 21:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4578</guid>
		<description>Very helpful.  I modified your code to make an &quot;add comment&quot; pop-up on one of my sites.  To see it in action, go to this link and click &quot;Add Your Comments...&quot; link.  Thanks!

http://www.everygoodbook.com/detail/296</description>
		<content:encoded><![CDATA[<p>Very helpful.  I modified your code to make an &#8220;add comment&#8221; pop-up on one of my sites.  To see it in action, go to this link and click &#8220;Add Your Comments&#8230;&#8221; link.  Thanks!</p>
<p><a href="http://www.everygoodbook.com/detail/296" rel="nofollow">http://www.everygoodbook.com/detail/296</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4572</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 06 Feb 2010 07:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4572</guid>
		<description>Thank you for your time, Trevor. I don&#039;t know how to concatenate both of them but i will try to find on google. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thank you for your time, Trevor. I don&#8217;t know how to concatenate both of them but i will try to find on google. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4571</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sat, 06 Feb 2010 06:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4571</guid>
		<description>@&lt;a href=&quot;#comment-4570&quot; rel=&quot;nofollow&quot;&gt;Karl&lt;/a&gt;-
You need to adjust your parameters for the &lt;a href=&quot;http://php.net/manual/en/function.mail.php&quot; rel=&quot;nofollow&quot;&gt;mail function&lt;/a&gt;. You can&#8217;t pass in $message and $messagesecond; you should concatenate the strings.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4570" rel="nofollow">Karl</a>-<br />
You need to adjust your parameters for the <a href="http://php.net/manual/en/function.mail.php" rel="nofollow">mail function</a>. You can&rsquo;t pass in $message and $messagesecond; you should concatenate the strings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4570</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 06 Feb 2010 06:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4570</guid>
		<description>I understand. Let me just ask you a last question.

Would the sendemail file look like that? I have added two times &quot;messagesecond&quot; below but I am really not sure.

&lt;pre&gt;&lt;code&gt;$mailFrom = $_POST[&#039;emailFrom&#039;];
$subject = $_POST[&#039;subject&#039;];
$message = $_POST[&#039;message&#039;];
$messagesecond = $_POST[&#039;messagesecond&#039;];

			
mail(&#039;xxxxx@gmail.com&#039;, $subject, $message, $messagesecond, &quot;From: &quot;.$mailFrom);
?&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I understand. Let me just ask you a last question.</p>
<p>Would the sendemail file look like that? I have added two times &#8220;messagesecond&#8221; below but I am really not sure.</p>
<pre><code>$mailFrom = $_POST['emailFrom'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$messagesecond = $_POST['messagesecond'];

mail('xxxxx@gmail.com', $subject, $message, $messagesecond, "From: ".$mailFrom);
?&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4569</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4569</guid>
		<description>@&lt;a href=&quot;#comment-4568&quot; rel=&quot;nofollow&quot;&gt;Karl&lt;/a&gt;-
I can&#8217;t look at those bits and say that is all correct, but those are all areas you will need to modify.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4568" rel="nofollow">Karl</a>-<br />
I can&rsquo;t look at those bits and say that is all correct, but those are all areas you will need to modify.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4568</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4568</guid>
		<description>Let me be more clear:

Index file
Second box name

Verify file
&lt;pre&gt;&lt;code&gt;if($_POST[&#039;secondbox&#039;] == &#039;&#039;) {
	$messageError = &#039;     bla bla bla.&#039;;
}&lt;/code&gt;&lt;/pre&gt;

Submitform.js file
&lt;pre&gt;&lt;code&gt;var secondboxVal = $(&quot;#secondbox&quot;).val();
if(messageVal == &#039;&#039;) {
	$(&quot;#secondbox&quot;).after(&#039;Veuillez renseigner le prenom et nom de la premiere personne.&#039;);
	hasError = true;
}&lt;/code&gt;&lt;/pre&gt;

Sendemail.php file
&lt;pre&gt;&lt;code&gt;$message = $_POST[&#039;message&#039;];&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Let me be more clear:</p>
<p>Index file<br />
Second box name</p>
<p>Verify file</p>
<pre><code>if($_POST['secondbox'] == '') {
	$messageError = '     bla bla bla.';
}</code></pre>
<p>Submitform.js file</p>
<pre><code>var secondboxVal = $("#secondbox").val();
if(messageVal == '') {
	$("#secondbox").after('Veuillez renseigner le prenom et nom de la premiere personne.');
	hasError = true;
}</code></pre>
<p>Sendemail.php file</p>
<pre><code>$message = $_POST['message'];</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4566</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4566</guid>
		<description>@&lt;a href=&quot;#comment-4565&quot; rel=&quot;nofollow&quot;&gt;Karl&lt;/a&gt;-
No, you just assigned the value to &lt;strong&gt;secondboxVal&lt;/strong&gt;, so that is what you want to use in your conditional statement.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4565" rel="nofollow">Karl</a>-<br />
No, you just assigned the value to <strong>secondboxVal</strong>, so that is what you want to use in your conditional statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4565</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4565</guid>
		<description>Yeah but i am a little bit lost. I am very new to this. I tried to do what you say and the email couldn&#039;t be sent. Is it what you would do for the JS?


&lt;pre&gt;&lt;code&gt;var secondboxVal = $(&quot;#secondbox&quot;).val();
if(messageVal == &#039;&#039;) {
	$(&quot;#secondbox&quot;).after(&#039;Veuillez renseigner le prenom et nom de la premiere personne.&#039;);
	hasError = true;
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Yeah but i am a little bit lost. I am very new to this. I tried to do what you say and the email couldn&#8217;t be sent. Is it what you would do for the JS?</p>
<pre><code>var secondboxVal = $("#secondbox").val();
if(messageVal == '') {
	$("#secondbox").after('Veuillez renseigner le prenom et nom de la premiere personne.');
	hasError = true;
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4564</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4564</guid>
		<description>@&lt;a href=&quot;#comment-4563&quot; rel=&quot;nofollow&quot;&gt;Karl&lt;/a&gt;-
You should just add new fields to the form and process them with the JavaScript and PHP.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4563" rel="nofollow">Karl</a>-<br />
You should just add new fields to the form and process them with the JavaScript and PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4563</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4563</guid>
		<description>Hi Trevor, I found the solution to my previous post. I have another request though. I don&#039;t speak english very well so I hope you&#039;ll understand me.

I would like the visitor of my page to indicate three different  names into three different boxes. How can I do to get the content of the three boxes into the message of my email? Would this complicate the script too much?</description>
		<content:encoded><![CDATA[<p>Hi Trevor, I found the solution to my previous post. I have another request though. I don&#8217;t speak english very well so I hope you&#8217;ll understand me.</p>
<p>I would like the visitor of my page to indicate three different  names into three different boxes. How can I do to get the content of the three boxes into the message of my email? Would this complicate the script too much?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4559</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 05 Feb 2010 21:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4559</guid>
		<description>@&lt;a href=&quot;#comment-4558&quot; rel=&quot;nofollow&quot;&gt;Trevor&lt;/a&gt;-

this seems to work...

&lt;pre&gt;&lt;code&gt;$(&#039;#sendEmail&#039;)[0].reset();&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4558" rel="nofollow">Trevor</a>-</p>
<p>this seems to work&#8230;</p>
<pre><code>$('#sendEmail')[0].reset();</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4558</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 05 Feb 2010 20:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4558</guid>
		<description>@&lt;a href=&quot;#comment-4557&quot; rel=&quot;nofollow&quot;&gt;Colin&lt;/a&gt;-
Sure, you can do that. Check out the &lt;a href=&quot;http://api.jquery.com/&quot; rel=&quot;nofollow&quot;&gt;jQuery API&lt;/a&gt; to see everything that you can do.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4557" rel="nofollow">Colin</a>-<br />
Sure, you can do that. Check out the <a href="http://api.jquery.com/" rel="nofollow">jQuery API</a> to see everything that you can do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4557</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 05 Feb 2010 20:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4557</guid>
		<description>@&lt;a href=&quot;#comment-4551&quot; rel=&quot;nofollow&quot;&gt;Trevor&lt;/a&gt;-

Thanks for cleaning up my posts!

Also, I was curious if there was a way to clear all the form fields on the fadeIn back to the default. In Firefox 3.5 all the information you just submitted seems to stay in the fields, but is that just a Firefox thing?</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4551" rel="nofollow">Trevor</a>-</p>
<p>Thanks for cleaning up my posts!</p>
<p>Also, I was curious if there was a way to clear all the form fields on the fadeIn back to the default. In Firefox 3.5 all the information you just submitted seems to stay in the fields, but is that just a Firefox thing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#171; qeqnes &#124; Designing. jQuery, Ajax, PHP, MySQL and Templates</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4556</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#171; qeqnes &#124; Designing. jQuery, Ajax, PHP, MySQL and Templates</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4556</guid>
		<description>[...] 19. Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 19. Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4555</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4555</guid>
		<description>alright i must be doing something wrong but anyway... a better way to implement what I have above @ the link is very welcomed. It seems to run smooth and have no issues on a one tabbed browser but like I said above the timings get jacked up if your netspeed is low.</description>
		<content:encoded><![CDATA[<p>alright i must be doing something wrong but anyway&#8230; a better way to implement what I have above @ the link is very welcomed. It seems to run smooth and have no issues on a one tabbed browser but like I said above the timings get jacked up if your netspeed is low.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4553</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4553</guid>
		<description>@Matt.

I&#039;ve been testing out variations of your code and noticed that if you have slow net, like if you are running utorrent and  your connection is maxed, the timings get all screwed up. 

Is this because of setTimeout? Is there a better way to fade out and remove the success message then reload the original form with fadeTo?

I&#039;m running mine with fadeTo instead of fadeOut and if I set the timeouts longer it works fine on slow net but if it&#039;s slower then the times overlap and when pulling in my form again it removes the P thus removing my original P on form.

Page w/ form: http://fiftyonestudios.com/projects/web/submitform/contact/

Here&#039;s what my code looks like at the moment:
&lt;pre&gt;&lt;code&gt;$(document).ready(function(){
	$(&quot;#submit&quot;).click(function(){
		$(&quot;.error&quot;).hide();
		
		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;

		var nameVal = $(&quot;#name&quot;).val();
		if(nameVal == &#039;&#039;) {
			$(&quot;#name&quot;).after(&#039;You forgot to enter your name.&#039;);
			hasError = true;
		}
		
		var emailFromVal = $(&quot;#emailFrom&quot;).val();
		if(emailFromVal == &#039;&#039;) {
			$(&quot;#emailFrom&quot;).after(&#039;You forgot to enter your email address.&#039;);
			hasError = true;
		} else if(!emailReg.test(emailFromVal)) {	
			$(&quot;#emailFrom&quot;).after(&#039;Please enter a valid email address.&#039;);
			hasError = true;
		}
		
		var subjectVal = $(&quot;#subject&quot;).val();
		if(subjectVal == &#039;&#039;) {
			$(&quot;#subject&quot;).after(&#039;You forgot to enter the subject.&#039;);
			hasError = true;
		}
		
		var messageVal = $(&quot;#message&quot;).val();
		if(messageVal == &#039;&#039;) {
			$(&quot;#message&quot;).after(&#039;You forgot to enter the message.&#039;);
			hasError = true;
		}


		if(hasError == false) {
			$(this).hide();
			$(&quot;#sendEmail li.buttons&quot;).append(&#039;&#039;);
			
			$.post(&quot;sendemail.php&quot;,
   				{ name: nameVal, emailFrom: emailFromVal, subject: subjectVal, message: messageVal },
   					function(data){
						$(&quot;#sendEmail&quot;).fadeOut(400, function() {				   
							$(&quot;img#loading&quot;).remove();
							$(&quot;#sendEmail&quot;).before(&#039;Success!Message sent. Thank you and have a great day!&#039;);
							setTimeout(function() {
								$(&quot;#contact_form p&quot;).fadeOut(400);
							}, 2500);
						});
   					}
				);
				setTimeout(function() {
					$(&quot;#sendEmail&quot;).fadeIn(600);
					$(&quot;form p&quot;).show();
					$(&quot;#submit&quot;).show();
				}, 5000);
				
		}
		return false;
	});
});&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Matt.</p>
<p>I&#8217;ve been testing out variations of your code and noticed that if you have slow net, like if you are running utorrent and  your connection is maxed, the timings get all screwed up. </p>
<p>Is this because of setTimeout? Is there a better way to fade out and remove the success message then reload the original form with fadeTo?</p>
<p>I&#8217;m running mine with fadeTo instead of fadeOut and if I set the timeouts longer it works fine on slow net but if it&#8217;s slower then the times overlap and when pulling in my form again it removes the P thus removing my original P on form.</p>
<p>Page w/ form: <a href="http://fiftyonestudios.com/projects/web/submitform/contact/" rel="nofollow">http://fiftyonestudios.com/projects/web/submitform/contact/</a></p>
<p>Here&#8217;s what my code looks like at the moment:</p>
<pre><code>$(document).ready(function(){
	$("#submit").click(function(){
		$(".error").hide();

		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;

		var nameVal = $("#name").val();
		if(nameVal == '') {
			$("#name").after('You forgot to enter your name.');
			hasError = true;
		}

		var emailFromVal = $("#emailFrom").val();
		if(emailFromVal == '') {
			$("#emailFrom").after('You forgot to enter your email address.');
			hasError = true;
		} else if(!emailReg.test(emailFromVal)) {
			$("#emailFrom").after('Please enter a valid email address.');
			hasError = true;
		}

		var subjectVal = $("#subject").val();
		if(subjectVal == '') {
			$("#subject").after('You forgot to enter the subject.');
			hasError = true;
		}

		var messageVal = $("#message").val();
		if(messageVal == '') {
			$("#message").after('You forgot to enter the message.');
			hasError = true;
		}

		if(hasError == false) {
			$(this).hide();
			$("#sendEmail li.buttons").append('');

			$.post("sendemail.php",
   				{ name: nameVal, emailFrom: emailFromVal, subject: subjectVal, message: messageVal },
   					function(data){
						$("#sendEmail").fadeOut(400, function() {
							$("img#loading").remove();
							$("#sendEmail").before('Success!Message sent. Thank you and have a great day!');
							setTimeout(function() {
								$("#contact_form p").fadeOut(400);
							}, 2500);
						});
   					}
				);
				setTimeout(function() {
					$("#sendEmail").fadeIn(600);
					$("form p").show();
					$("#submit").show();
				}, 5000);

		}
		return false;
	});
});</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4551</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 05 Feb 2010 13:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4551</guid>
		<description>@&lt;a href=&quot;#comment-4549&quot; rel=&quot;nofollow&quot;&gt;Karl&lt;/a&gt;-
Do you mean an &lt;a href=&quot;http://www.w3schools.com/JS/js_popup.asp&quot; rel=&quot;nofollow&quot;&gt;alert&lt;/a&gt;?</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4549" rel="nofollow">Karl</a>-<br />
Do you mean an <a href="http://www.w3schools.com/JS/js_popup.asp" rel="nofollow">alert</a>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4549</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Fri, 05 Feb 2010 03:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4549</guid>
		<description>would you know how i could get a pop-up window saying &quot;your email has been sent&quot; instead of having a new page? Thanks for your help!</description>
		<content:encoded><![CDATA[<p>would you know how i could get a pop-up window saying &#8220;your email has been sent&#8221; instead of having a new page? Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#124; Afif Fattouh - Web Specialist</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4545</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#124; Afif Fattouh - Web Specialist</dc:creator>
		<pubDate>Thu, 04 Feb 2010 17:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4545</guid>
		<description>[...] 19. Ajax Forms with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] 19. Ajax Forms with jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nocleg</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4537</link>
		<dc:creator>Nocleg</dc:creator>
		<pubDate>Thu, 04 Feb 2010 14:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4537</guid>
		<description>It works great for my needs! thanks.</description>
		<content:encoded><![CDATA[<p>It works great for my needs! thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4535</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4535</guid>
		<description>Hey-thanks for this!  It works great for my needs!
Joel</description>
		<content:encoded><![CDATA[<p>Hey-thanks for this!  It works great for my needs!<br />
Joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4504</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Thu, 28 Jan 2010 15:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4504</guid>
		<description>@&lt;a href=&quot;#comment-4503&quot; rel=&quot;nofollow&quot;&gt;francois&lt;/a&gt;-
Looks like you have an error in your JavaScript. Also, when you submit the form without putting in anything, you get a PHP error.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4503" rel="nofollow">francois</a>-<br />
Looks like you have an error in your JavaScript. Also, when you submit the form without putting in anything, you get a PHP error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: francois</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4503</link>
		<dc:creator>francois</dc:creator>
		<pubDate>Thu, 28 Jan 2010 14:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4503</guid>
		<description>http://www.selfwatchers.be/contact.php</description>
		<content:encoded><![CDATA[<p><a href="http://www.selfwatchers.be/contact.php" rel="nofollow">http://www.selfwatchers.be/contact.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/ajax-forms-with-jquery/#comment-4502</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Thu, 28 Jan 2010 14:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=30#comment-4502</guid>
		<description>@&lt;a href=&quot;#comment-4501&quot; rel=&quot;nofollow&quot;&gt;francois&lt;/a&gt;-
Do you have a link to the form?</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-4501" rel="nofollow">francois</a>-<br />
Do you have a link to the form?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
