<?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>TechieDan &#187; form</title>
	<atom:link href="http://techiedan.com/tag/form/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedan.com</link>
	<description>Your Search for The Tech Stuffs</description>
	<lastBuildDate>Thu, 09 Feb 2012 02:59:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Javascript Submit Form Not Working</title>
		<link>http://techiedan.com/2009/11/26/javascript-submit-form-not-working/</link>
		<comments>http://techiedan.com/2009/11/26/javascript-submit-form-not-working/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 06:46:00 +0000</pubDate>
		<dc:creator>techieDan</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://techiedan.com/?p=676</guid>
		<description><![CDATA[<p>Remember previously I was writing about how to do javascript to submit a form in html/jsp/php/asp. Well, surprisingly sometimes we discover things which are unexpected. For instance to submit a form without clicking the submit button but another link or button. Though something is wrong! The form doesn&#8217;t submit at all and there&#8217;s a javascript [...]]]></description>
			<content:encoded><![CDATA[<p>Remember previously I was writing about how to do javascript to submit a form in html/jsp/php/asp. Well, surprisingly sometimes we discover things which are unexpected. For instance to submit a form without clicking the submit button but another link or button. Though something is wrong! The form doesn&#8217;t submit at all and there&#8217;s a javascript error too.</p>
<input type="button" value="Send Data" />
<input type="submit" value="Original Submit" />
<p>From the example above, imagine clicking the <strong>Send Data button</strong> to submit the form using javascript. (<em>Well, the above is just an example and doesn&#8217;t do a thing though). </em>The issue is what&#8217;s the matter? Here are the solutions.</p>
<p><img class="alignnone size-full wp-image-687" title="Submit Form" src="http://techiedan.com/wp-content/uploads/2009/11/submitform.jpg" alt="Submit Form" width="424" height="283" /></p>
<p>If you have a submit button visible in your form, do rename your Submit button. For example</p>
<pre>&lt;input type="Submit" name="submit" value="submit"&gt;</pre>
<p>should be renamed to something like</p>
<pre>&lt;input type="Submit" name="SendForm" value="submit"&gt;</pre>
<p>Notice the difference? The name is change in the property of the input type. Now how do you explain this phenomena?</p>
<blockquote><p><em>This is a naming issue. forms have a method called &#8216;submit&#8217;, but if you give a form element the name &#8216;submit&#8217; then javascript will not be able to find the .submit method, causing your .submit function to never fire.</em></p></blockquote>
<p>Finally all is well once again. If you&#8217;re still clueless as to how to create a form using buttons and submitting it via javascript, remember to <a title="Submit Form Using Button" href="http://techiedan.com/2009/01/18/use-button-instead-of-submit-for-form/" target="_blank">visit this post to learn all about it</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedan.com/2009/11/26/javascript-submit-form-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

