<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.maxester.com/blog</link>
	<description>Tutorials, Examples and Implementation code for Developers Help</description>
	<lastBuildDate>Mon, 17 Feb 2025 09:17:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.22</generator>
	<item>
		<title>How to post an array of undefined length in HTML form element?</title>
		<link>https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/</link>
		<comments>https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/#respond</comments>
		<pubDate>Fri, 01 Mar 2019 10:34:59 +0000</pubDate>
		<dc:creator><![CDATA[Bhaskar Chaudhary]]></dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=364</guid>
		<description><![CDATA[<p>To post an array of undefined length in HTML form element. We need different input element of form with a similar name. These elements will have square brackets in the end. Square brackets make them an array when the form&#8230;</p>
<p><a href="https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/">How to post an array of undefined length in HTML form element?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>To post an array of undefined length in HTML form element. We need different input element of form with a similar name. These elements will have <strong>square brackets</strong> in the end.  </p>



<p><strong>Square brackets </strong>make them<strong> an array</strong> when the form is posted.</p>



<p>eg:- &lt;input type=&#8221;text&#8221; name=&#8221;<strong><em>key_name</em>[]</strong>&#8220;&gt;</p>



<pre class="wp-block-code"><code>&lt;form>
   &lt;input type="text" name="key_name[]">
   &lt;input type="text" name="key_name[]">
   &lt;input type="text" name="key_name[]">
   &lt;input type="text" name="key_name[]">
   &lt;input type="submit" name="submit">
&lt;/form></code></pre>



<center>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads"
     style="display:inline-block;"
     data-ad-client="ca-pub-3804472713147276"
     data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>




<p>The above form will return an array of length 4, with the element in the order of declaration.</p>



<p>After the form is Submitted the fields with a name like &#8220;<strong><em>key_name</em>[]</strong>&#8221; will be converted into a numeric array named <strong><em>key_name</em></strong>.</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/">How to post an array of undefined length in HTML form element?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2019/03/01/how-to-post-an-array-of-undefined-length-in-html-form-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
