CINXE.COM

Processing Multiple Forms on One Page with PHP | bavotasan.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en-US"><head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://bavotasan.com:80/tutorials/processing-multiple-forms-on-one-page-with-php/","20100719125955","https://web.archive.org/","web","/_static/", "1279544395"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20100719125955cs_/http://bavotasan.com/wp-content/w3tc/min/default.include.css" media="all"/><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="googlebot" content="index,archive,follow,noodp"/><meta name="robots" content="all,index,follow"/><meta name="msnbot" content="all,index,follow"/><meta name="description" content="I know that the way most people treat multiple forms on one page is to have each form post to another PHP file where the form is validated, its information..."/><meta name="keywords" content="Array,blah blah blah,blah blah blah blah,Blah Blah Blah Blah Blah,Blah Blah Blah Blah Blah Blah,Email,file,form,forms,Function,head,Hidden Input Tag,information,Lt,name,page,Php Code,Php File,post,solution,something,tag,trick,way,work,"/><title>Processing Multiple Forms on One Page with PHP | bavotasan.com</title><link rel="pingback" href="http://bavotasan.com/xmlrpc.php"/><link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Feed" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/feed/"/><link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Comments Feed" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/comments/feed/"/><link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Processing Multiple Forms on One Page with PHP Comments Feed" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/feed/"/> <script type="text/javascript" src="https://web.archive.org/web/20100719125955js_/http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://bavotasan.com/xmlrpc.php?rsd"/><link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://bavotasan.com/wp-includes/wlwmanifest.xml"/><link rel="index" title="bavotasan.com" href="http://bavotasan.com/"/><link rel="start" title="Removing Images from a WordPress Post: Redux" href="http://bavotasan.com/tutorials/removing-images-from-a-wordpress-post/"/><link rel="prev" title="How to Wrap Text within the <pre> Tag Using CSS" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/how-to-wrap-text-within-the-pre-tag-using-css/"/><link rel="next" title="Check if a Number is Even or Odd with PHP" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/check-if-a-number-is-even-or-odd-with-php/"/><link rel="canonical" href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/"/><link rel="shortlink" href="https://web.archive.org/web/20100719125955/http://wp.me/pmjlM-99"/> <script type="text/javascript" src="https://web.archive.org/web/20100719125955js_/http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script> <meta property="fb:page_id" content="137456822940271"/><meta property="fb:admins" content="586505548"/><meta property="og:site_name" content="bavotasan.com"/><meta property="og:title" content="Processing Multiple Forms on One Page with PHP"/><meta property="og:description" content="I know that the way most people treat multiple forms on one page is to have each form post to another PHP file where the form is validated, its information is entered into a database or an email is sent off. So you usually have something like this: <form name=&quot;contactform&quot; method=&quot;post&quot; action=&quot;sendmail.php&quot;> blah blah blah [...]"/><meta property="og:type" content="article"/><meta property="og:image" content="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/uploads/2009/05/forms.jpg"/></head><body class="single single-post postid-567"><div id="bodywrap"> <script type="text/javascript">(function(){var bsa=document.createElement('script');bsa.type='text/javascript';bsa.async=true;bsa.src='//web.archive.org/web/20100719125955/http://s3.buysellads.com/ac/bsa.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);})();</script> <div id="header"><div id="topmenu" class="menu-top-menu-container"><ul id="menu-top-menu" class="menu"><li id="menu-item-2254" class="menu-item menu-item-type-custom"><a href="https://web.archive.org/web/20100719125955/http://themes.bavotasan.com/">Themes by bavotasan.com</a></li><li id="menu-item-2255" class="menu-item menu-item-type-custom"><a href="https://web.archive.org/web/20100719125955/http://support.bavotasan.com/">Support Forum</a></li><li id="menu-item-2259" class="menu-item menu-item-type-custom"><a href="https://web.archive.org/web/20100719125955/http://themes.bavotasan.com/affiliates">Affiliates</a></li><li id="menu-item-2256" class="menu-item menu-item-type-post_type"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/about/">About</a></li><li id="menu-item-2257" class="menu-item menu-item-type-post_type"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/services/">Services</a></li><li id="menu-item-2258" class="menu-item menu-item-type-post_type"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/contact/">Contact</a></li></ul></div><div id="title"> <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/"> <img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/bavotasan.png" alt="bavotasan.com" width="400" height="70"/> <span id="desc"></span></a></div><div id="follow"> <span></span> <a href="https://web.archive.org/web/20100719125955/http://twitter.com/bavotasan" class="twitter"></a> <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/feed/" class="rss"></a></div><div id="navigation" class="menu-main-menu-container"><ul id="menu-main-menu" class="menu"><li id="menu-item-2264"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/"><span></span>Home</a></li><li id="menu-item-2266"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/category/articles/"><span></span>Articles</a></li><li id="menu-item-2265" class="current-menu-item"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/category/tutorials/"><span></span>Tutorials</a></li><li id="menu-item-2267"><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/category/downloads/"><span></span>Downloads</a></li></ul></div></div><div id="mainwrapper"><div id="leftcontent"><div class="posttop"><div class="thedate"><div class="month">May</div><div class="day">04</div><div class="year">2009</div></div><h1>Processing Multiple Forms on One Page with PHP</h1> <br class="clear"/><p>I know that the way most people treat multiple forms on one page is to have each form post to another PHP file where the form is validated, its information is entered into a database or an email is sent off. So you usually have something like this:</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;contactform&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sendmail.php&quot;</span><span style="color: #339933;">&gt;</span> blah blah blah <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span> &nbsp; <span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailinglist&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;join.php&quot;</span><span style="color: #339933;">&gt;</span> blah blah blah <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div><p>That work great, but why would you create all those extra files when you can just have the form post to the same file and create multiple functions to process your multiple forms.<br/> <span id="more-567"></span><br/> The solution is very simple and super efficient.</p><p>First, lets create some forms.</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailinglist&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Join Our Mailing List&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span> &nbsp; <span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;contactus&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;subjet&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #339933;">&gt;&lt;/</span>textarea<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Send Email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div><p>Now lets put some PHP code before the <code>&lt;head&gt;</code> tag to have different processes for each form.</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array_key_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mailinglist'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">do</span> something here<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array_key_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'contact'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">do</span> something here<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div><p>One more step. You need to add a hidden input tag to each form for it to function properly.</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailinglist&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Join Our Mailing List&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailinglist&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">/&gt;</span> <span style="color: #666666; font-style: italic;">// hidden input tag</span> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span> &nbsp; <span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;contactus&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;subjet&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;message&quot;</span><span style="color: #339933;">&gt;&lt;/</span>textarea<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Send Email&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;contactus&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">/&gt;</span> <span style="color: #666666; font-style: italic;">// hidden input tag</span> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div><p>Now all you need to do is create your processes within those two &#8220;if&#8221; statements and each form will be dealt with accordingly when it it filled and submitted.</p><p>The trick is making sure to match the name of the hidden field with the <code>array_key_exists()</code> function in the &#8220;if&#8221; statement.</p><div class="buttonbox"></div></div><div class="post"><div class="socialleft">If you liked reading this, please share it.</div><ul class="addtoany_list"><li><a href="https://web.archive.org/web/20100719125955/http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;linkname=Processing%20Multiple%20Forms%20on%20One%20Page%20with%20PHP" title="Twitter" rel="nofollow" target="_blank"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a></li><li><a href="https://web.archive.org/web/20100719125955/http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;linkname=Processing%20Multiple%20Forms%20on%20One%20Page%20with%20PHP" title="Facebook" rel="nofollow" target="_blank"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a></li><li><a href="https://web.archive.org/web/20100719125955/http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;linkname=Processing%20Multiple%20Forms%20on%20One%20Page%20with%20PHP" title="Digg" rel="nofollow" target="_blank"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a></li><li><a href="https://web.archive.org/web/20100719125955/http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;linkname=Processing%20Multiple%20Forms%20on%20One%20Page%20with%20PHP" title="Delicious" rel="nofollow" target="_blank"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a></li><li><a href="https://web.archive.org/web/20100719125955/http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;linkname=Processing%20Multiple%20Forms%20on%20One%20Page%20with%20PHP" title="StumbleUpon" rel="nofollow" target="_blank"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a></li><li><iframe src="https://web.archive.org/web/20100719125955if_/http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fprocessing-multiple-forms-on-one-page-with-php%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowtransparency="true"></iframe></li></ul></div><div class="post"><p class="tags">Tags: <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/array/" rel="tag">Array</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/blah-blah-blah/" rel="tag">blah blah blah</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/blah-blah-blah-blah/" rel="tag">blah blah blah blah</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/blah-blah-blah-blah-blah/" rel="tag">Blah Blah Blah Blah Blah</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/blah-blah-blah-blah-blah-blah/" rel="tag">Blah Blah Blah Blah Blah Blah</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/email/" rel="tag">Email</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/file/" rel="tag">file</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/form/" rel="tag">form</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/forms/" rel="tag">forms</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/function/" rel="tag">Function</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/head/" rel="tag">head</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/hidden-input-tag/" rel="tag">Hidden Input Tag</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/information/" rel="tag">information</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/lt/" rel="tag">Lt</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/name/" rel="tag">name</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/page/" rel="tag">page</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/php-code/" rel="tag">Php Code</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/php-file/" rel="tag">Php File</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/post/" rel="tag">post</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/solution/" rel="tag">solution</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/something/" rel="tag">something</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/tag/" rel="tag">tag</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/trick/" rel="tag">trick</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/way/" rel="tag">way</a>, <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tag/work/" rel="tag">work</a></p><p class="tags">Short URL: <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/?p=567" title="Processing Multiple Forms on One Page with PHP">http://bavotasan.com/?p=567</a></p></div><div class="post"><div id="crp_related"><h3>Similar Posts</h3><ul><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/getting-text-in-your-wordpress-search-box/" rel="bookmark" class="crp_title">Getting Text in your WordPress Search Box</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/" rel="bookmark" class="crp_title">How to Upload and Unpack a Zip File using PHP</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/turn-text-into-an-image-using-the-php-gd-library/" rel="bookmark" class="crp_title">Turn Text into an Image using the PHP GD Library</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/a-clever-and-safe-way-to-display-your-email-address/" rel="bookmark" class="crp_title">A Clever and Safe Way to Display your Email Address</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/adding-extra-fields-to-the-wordpress-user-profile/" rel="bookmark" class="crp_title">Adding Extra Fields to the WordPress User Profile</a></li></ul></div><div id="bsap_1249050" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div></div><div class="post"> <a href="#comment_list"></a><div id="comments"><h3 id="comments-title">Discussion <small> 12 Comments</small></h3><ol class="commentlist"><li class="comment even thread-even depth-1" id="li-comment-2227"><div id="comment-2227"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://1.gravatar.com/avatar/ba3cf42e0f5dc0be85699952603ee8a3?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://dezfutak.com/" rel="external nofollow" class="url">Dez Futak</a></span> <span class="commentdate"> on May 5, 2009 at 5:20 am</span></div><div class="comment-text"><p>Very nicely explained &amp; a useful tip &#8211; many thanks!</p><p>Dez.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=2227#respond" onclick="return addComment.moveForm(&quot;comment-2227&quot;, &quot;2227&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-3042"><div id="comment-3042"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://1.gravatar.com/avatar/b7d6b3e875f601426d34f72e42d49d56?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">Still Lost</span> <span class="commentdate"> on June 23, 2009 at 8:25 pm</span></div><div class="comment-text"><p>Hey, thanks for the info, but how about showing specifically how to connect the sendmail.php and the join.php to the if statements you made and maybe adding an error notice or die switch if one form is not complete.</p><p>I&#8217;m going to assume we just need to put the action within the if statement but I am not sure. I am going to go workout try it and then come back if I still don&#8217;t get the results I want.</p><p>Thanks again!</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=3042#respond" onclick="return addComment.moveForm(&quot;comment-3042&quot;, &quot;3042&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment even thread-even depth-1" id="li-comment-3444"><div id="comment-3444"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/82cf9a87a747f31d266859823a2e5b71?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://softloads.in/" rel="external nofollow" class="url">Akshay</a></span> <span class="commentdate"> on July 24, 2009 at 10:15 am</span></div><div class="comment-text"><p>hey !thanks alot,but can u pls tell me how can i process multiple forms on 2 different pages.In other words dividing a simple form into 2 pages and then processing it.<br/> Pls reply soon.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=3444#respond" onclick="return addComment.moveForm(&quot;comment-3444&quot;, &quot;3444&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div><ul class="children"><li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-3475"><div id="comment-3475"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/0375e723bd400a99acb6f2e08d6ea190?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://tinkerpriestmedia.com/" rel="external nofollow" class="url">c.bavota</a></span> <span class="commentdate"> on July 27, 2009 at 8:07 am</span></div><div class="comment-text"><p>Sure. Just use <a href="https://web.archive.org/web/20100719125955/http://ca2.php.net/manual/en/book.session.php" rel="nofollow">Sessions</a> to move the information to the second page.</p></div></div></li></ul></li><li class="comment even thread-odd thread-alt depth-1" id="li-comment-5527"><div id="comment-5527"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/e6573e04129155254b94a89c5fd88e7f?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">Howida</span> <span class="commentdate"> on October 21, 2009 at 5:52 am</span></div><div class="comment-text"><p>thank you for te valuable information. how can i show two forms in one form based on a click from one of the forms. i.e:<br/> i want to show one form with a button, after submitting that form another form will be displayed on the same page containg the information of that form being submitted.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=5527#respond" onclick="return addComment.moveForm(&quot;comment-5527&quot;, &quot;5527&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div><ul class="children"><li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-5537"><div id="comment-5537"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/0375e723bd400a99acb6f2e08d6ea190?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://tinkerpriestmedia.com/" rel="external nofollow" class="url">c.bavota</a></span> <span class="commentdate"> on October 21, 2009 at 10:38 am</span></div><div class="comment-text"><p>To move information from one page to the next you can use <code>$_POST</code>. Make sure your form has <code>method="post"</code> set and then on the second form, display the information from the first form by using</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'input-name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div><p>as the value for the new input fields.</p></div></div></li></ul></li><li class="comment even thread-even depth-1" id="li-comment-6225"><div id="comment-6225"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/488da1ebf0b3e021e61a6502e524236d?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">Onno</span> <span class="commentdate"> on November 16, 2009 at 4:31 pm</span></div><div class="comment-text"><p>Here&#8217;s how to post two forms at once (to the same script):</p><p><a href="https://web.archive.org/web/20100719125955/http://tech.solin.eu/doku.php?id=webdev:submitting_multiple_forms_at_once" rel="nofollow">http://tech.solin.eu/doku.php?id=webdev:submitting_multiple_forms_at_once</a></p><p>This solution relies on the javascript prototype library. There are also various jQuery solutions out there.</p><p>Onno</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=6225#respond" onclick="return addComment.moveForm(&quot;comment-6225&quot;, &quot;6225&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-6354"><div id="comment-6354"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://1.gravatar.com/avatar/3a2c45ab2925581cbb6bca88efc98b14?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://vigourtec.com/" rel="external nofollow" class="url">moek</a></span> <span class="commentdate"> on November 22, 2009 at 12:16 am</span></div><div class="comment-text"><p>very nice explanation! which I search 3days along. thanks a lot&#8230;</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=6354#respond" onclick="return addComment.moveForm(&quot;comment-6354&quot;, &quot;6354&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment even thread-even depth-1" id="li-comment-8485"><div id="comment-8485"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/6085248bf1bc78d07e0f2b0574f6b6c9?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20100719125955/http://geniuzs.blogspot.com/" rel="external nofollow" class="url">Geniuzs</a></span> <span class="commentdate"> on March 25, 2010 at 11:39 am</span></div><div class="comment-text"><p>Wow&#8230; you have really made my life simple&#8230;Thanks a million&#8230; you have saved me writing out code that took ages to write and also cleared up so much clutter that I used to make while writing separate scripts for these forms.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=8485#respond" onclick="return addComment.moveForm(&quot;comment-8485&quot;, &quot;8485&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-8756"><div id="comment-8756"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/c6b3240f3ef73fde45d24f422a125589?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">Butch7070</span> <span class="commentdate"> on April 13, 2010 at 9:40 am</span></div><div class="comment-text"><p>I have to admit, that&#8217;s pretty slick. The reason I would go ahead and do it the other way is for maintainability. I can easily look through my files and see that the join.php file probably contains the code for joining, whereas I would have to open up the file with multiple forms to see which file it calls, then look through that file and spend time searching through the code to find where the functionality lies for joining the site.</p><p>Doing it the old way does create a lot of files, but they are small and they each meet one of the OO goals: &#8220;Do one thing and do it well&#8221;</p><p>Creating one massive file to have different functionality based on input, while educationally intriguing, is hard to maintain and means that the php parser has to parse through code that isn&#8217;t even usable for the given context.</p><p>That&#8217;s just my $.02, take it for what it&#8217;s worth.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=8756#respond" onclick="return addComment.moveForm(&quot;comment-8756&quot;, &quot;8756&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment even thread-even depth-1" id="li-comment-8980"><div id="comment-8980"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://0.gravatar.com/avatar/8893bf7776e4471a237b71990ac1ec2a?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">Gursel</span> <span class="commentdate"> on April 25, 2010 at 5:57 pm</span></div><div class="comment-text"><p>Thank you so much for the code. I was about to pull my hair out and i stumbled across this script and it works beautifully.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=8980#respond" onclick="return addComment.moveForm(&quot;comment-8980&quot;, &quot;8980&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li><li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-12488"><div id="comment-12488"><div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20100719125955im_/http://1.gravatar.com/avatar/dca3a201854aa78b96a322e003c8dd53?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/></div><div class="comment-author"> <span class="authorname">v</span> <span class="commentdate"> on July 8, 2010 at 5:31 pm</span></div><div class="comment-text"><p>That&#8217;s useless because it doesn&#8217;t change anything. It&#8217;s better using form action because it keeps the code more organized.</p></div><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/?replytocom=12488#respond" onclick="return addComment.moveForm(&quot;comment-12488&quot;, &quot;12488&quot;, &quot;respond&quot;, &quot;567&quot;)">Reply</a></div></div></li></ol><a name="respond"></a><div id="respond"><h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://web.archive.org/web/20100719125955/http://bavotasan.com/wp-comments-post.php" method="post" id="commentform"><p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p><p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><input id="author" name="author" type="text" value="" size="30" aria-required="true"/></p><p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><input id="email" name="email" type="text" value="" size="30" aria-required="true"/></p><p class="comment-form-url"><label for="url">Website</label><input id="url" name="url" type="text" value="" size="30"/></p><p>To enter code in the comment box, please place it between <strong>&lt;pre lang="php"&gt; &lt;/pre&gt;</strong> tags. You don't have to convert any characters to their hex/HTML code. Just add your code the way you would to any code editor.</p><p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p><p class="form-submit"> <input name="submit" type="submit" id="submit" value="Post Comment"/> <input type="hidden" name="comment_post_ID" value="567" id="comment_post_ID"/> <input type="hidden" name="comment_parent" id="comment_parent" value="0"/></p></form></div></div></div></div><div id="sidebar"><div id="search"><form method="get" id="searchform" action="https://web.archive.org/web/20100719125955/http://bavotasan.com/"><div> <input type="text" class="search_input" value="Search" name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}"/> <input type="hidden" id="searchsubmit" value="Search"/></div></form><div class="arrow"></div></div><div id="sideads"><div id="bsap_1237633" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div><br class="clear"/><div id="bsap_1237624" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div></div> <br class="clear"/><div class="line"></div><div class="side-widget"><h4>Most Popular Posts</h4><ul class="wppp_list"><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/creating-a-jquery-mouseover-fade-effect/" title="Creating a Mouseover Fade Effect with jQuery ">Creating a Mouseover Fade Effect with jQuery </a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/a-simple-mouseover-hover-effect-with-jquery/" title="A Simple Mouseover Hover Effect with jQuery">A Simple Mouseover Hover Effect with jQuery</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/" title="Magazine Basic v2.6 WordPress Theme">Magazine Basic v2.6 WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/" title="Full Size Background Image jQuery Plugin">Full Size Background Image jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/retrieve-the-first-image-from-a-wordpress-post/" title="Retrieve and Display Images from a WordPress Post">Retrieve and Display Images from a WordPress Post</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/" title="Excerpt or Content Word Limit in WordPress: Redux">Excerpt or Content Word Limit in WordPress: Redux</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/" title="Processing Multiple Forms on One Page with PHP">Processing Multiple Forms on One Page with PHP</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/remove-the-title-attribute-from-wordpress-category-and-page-lists/" title="Remove the Title Attribute from WordPress Category and Page Lists">Remove the Title Attribute from WordPress Category and Page Lists</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/" title="WordPress 3.0: Checking out the New Menu System">WordPress 3.0: Checking out the New Menu System</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/magazine-columns-wordpress-plugin/" title="Magazine Columns Free WordPress Plugin">Magazine Columns Free WordPress Plugin</a></li></ul></div><div id="affiliates-ads"> <a href="https://web.archive.org/web/20100719125955/http://themes.bavotasan.com/"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/themes.png" alt="Themes by bavotasan.com" class="themes" width="260" height="241"/></a> <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/ddp-ad.png" class="sideads" alt="Delete Duplicate Posts Pro" width="125" height="125"/></a> <a href="https://web.archive.org/web/20100719125955/https://www.e-junkie.com/ecom/gb.php?cl=88539&amp;c=ib&amp;aff=93121"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/diggword.png" alt="Digging into WordPress" class="sideads" width="125" height="125"/></a> <a href="https://web.archive.org/web/20100719125955/https://www.e-junkie.com/ecom/gb.php?cl=94455&amp;c=ib&amp;aff=93121" target="ejejcsingle"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/WP-Defender-Cover2.jpg" alt="WordPress Defender" width="125" height="125" class="sideads"/></a> <a href="https://web.archive.org/web/20100719125955/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest&amp;page=7"><img src="https://web.archive.org/web/20100719125955im_/http://bavotasan.com/images/inmotion.gif" class="sideads" width="125" height="125"/></a></div><div class="line"></div><div class="side-widget redlink"><h4>Get a Premium Theme for FREE</h4><p><a href="https://web.archive.org/web/20100719125955/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest" class="wordpress-logo"></a>Don't have a Web site? How would you like to have WordPress and a <a href="https://web.archive.org/web/20100719125955/http://themes.bavotasan.com/category/premium-themes">Themes by bavotasan.com</a> Premium theme installed and configured for <em>FREE</em>? All you need to do is <a href="https://web.archive.org/web/20100719125955/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest">sign up with InMotion Hosting through this link</a>. <br/> <br/> <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/free-premium-theme/" class="fr"><em>Click here for more information &raquo;</em></a></p></div><div class="side-widget"><h4>Support c.bavota</h4><p>If you would like to support <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/">c.bavota</a> and <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/">bavotasan.com</a>, please use the donate link below. Any amount, even $1.00, is appreciated (a man's gotta eat, ya know).</p> <a href="https://web.archive.org/web/20100719125955/https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=5745952" id="donate" class="fr">Donate</a></div><div id="bsap_1249036" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div></div></div></div><div class="whiteline"></div><div id="footer"><div id="bottombar"> <a href="javascript:void(0)" class="backtotop">Back to Top<span></span></a><div class="col col1"><h4 class="one"><span></span>Stay in Touch</h4> <a href="https://web.archive.org/web/20100719125955/http://twitter.com/bavotasan" class="footer-twitter"><span></span>Follow me on Twitter</a><br/> <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/feed/" class="footer-rss"><span></span>Subscribe to my RSS Feed</a> <br class="clear"/><h4 class="two"><span></span>Stay in tune</h4><div class="tweets"></div></div><div class="col col2"><h4 class="three"><span></span>Downloads</h4><ul><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/feed-me-seymour-free-wordpress-theme/">Feed Me, Seymour 1.2</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/">Magazine Basic v2.6 WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/">Full Size Background Image jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/easy-overlay-modal-window-jquery-plugin/">Easy Overlay Modal Window jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/snowblind-free-wordpress-theme/">Snowblind v1.1.2 Free WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/8-free-colorful-background-textures-for-designers/">8 Free Colorful Background Textures for Designers</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/stationery-premium-wordpress-theme/">Stationery Premium WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/illustrious-premium-wordpress-theme/">Illustrious Premium WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/">Delete Duplicate Posts Pro WordPress Plugin</a></li></ul></div><div class="col col3"><h4 class="four"><span></span>Tutorials</h4><ul><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/shorten-your-post-titles-in-wordpress/">Shorten Your Post Titles in WordPress</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/display-rss-feed-with-php/">An Easy Way to Display an RSS Feed with PHP</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/tips-speed-up-jquery/">6 Tips to Speed Up jQuery</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/excluding-pages-from-wordpress-search/">Excluding Pages from WordPress Search</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/scrolling-back-to-top-button-jquery/">Creating a Scrolling Back to Top Button with jQuery</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/get_theme_data-developing-custom-theme-wordpress/">Using get_theme_data() when Developing a Custom Theme for WordPress</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/define-constant-php/">Defining a Constant with PHP</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/wordpress-3-activating-background-editor/">WordPress 3.0: Activating the Background Editor</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/wordpress-3-creating-multi-user-web-sites/">WordPress 3.0: Creating Multi-User Web Sites</a></li><li><a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/">WordPress 3.0: Checking out the New Menu System</a></li></ul></div></div></div><div id="copyright"><div id="copyright-wrapper"> Copyright &copy; 2010 <a href="https://web.archive.org/web/20100719125955/http://bavotasan.com/">bavotasan.com</a>. All Rights Reserved. Powered by <a href="https://web.archive.org/web/20100719125955/http://www.wordpress.org/">WordPress</a>.</div></div> <script src="https://web.archive.org/web/20100719125955js_/http://stats.wordpress.com/e-201029.js" type="text/javascript"></script> <script type="text/javascript">st_go({blog:'5317602',v:'ext',post:'567'});var load_cmc=function(){linktracker_init(5317602,567,2);};if(typeof addLoadEvent!='undefined')addLoadEvent(load_cmc);else load_cmc();</script> <script type="text/javascript" src="https://web.archive.org/web/20100719125955js_/http://bavotasan.com/wp-content/themes/bavotasan-2010/js/coolstuff.js"></script> <script type="text/javascript">hs.graphicsDir='https://web.archive.org/web/20100719125955/http://bavotasan.com/images/graphics/';hs.outlineType='rounded-white';hs.outlineWhileAnimating=true;hs.showCredits=false;</script> <script type="text/javascript">var gaJsHost=(("https:"==document.location.protocol)?"https://web.archive.org/web/20100719125955/https://ssl.":"https://web.archive.org/web/20100719125955/http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script> <script type="text/javascript">try{var pageTracker=_gat._getTracker("UA-452133-5");pageTracker._trackPageview();}catch(err){}</script> </body></html> <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/ Minified using disk Page Caching using disk (user agent is rejected) Database Caching 45/71 queries in 0.125 seconds using disk Served from: bavotasan.com @ 2010-07-19 12:59:55 --><!-- FILE ARCHIVED ON 12:59:55 Jul 19, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 12:33:59 Nov 26, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.741 exclusion.robots: 0.038 exclusion.robots.policy: 0.021 esindex: 0.014 cdx.remote: 6.223 LoadShardBlock: 552.466 (3) PetaboxLoader3.datanode: 85.22 (5) PetaboxLoader3.resolve: 598.661 (3) load_resource: 143.547 (2) -->

Pages: 1 2 3 4 5 6 7 8 9 10