<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Change form multipart not using ajax]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6989&amp;type=atom" />
	<updated>2017-09-24T21:18:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6989</id>
		<entry>
			<title type="html"><![CDATA[Re: Change form multipart not using ajax]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28715#p28715" />
			<content type="html"><![CDATA[<p>To make the $_GET variables persistent, copy it to the session variable.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-24T21:18:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28715#p28715</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change form multipart not using ajax]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28713#p28713" />
			<content type="html"><![CDATA[<p>Here is the function </p><div class="codebox"><pre><code> start_form </code></pre></div><p>.</p><div class="codebox"><pre><code>function start_form($multi=false, $dummy=false, $action=&quot;&quot;, $name=&quot;&quot;)
{
    // $dummy - leaved for compatibility with 2.0 API
    global $form_nested;

    if (++$form_nested) return;

    if ($name != &quot;&quot;)
        $name = &quot;name=&#039;$name&#039;&quot;;
    if ($action == &quot;&quot;)
        $action = $_SERVER[&#039;PHP_SELF&#039;];

    if ($multi)
        echo &quot;&lt;form enctype=&#039;multipart/form-data&#039; method=&#039;post&#039; action=&#039;$action&#039; $name&gt;\n&quot;;
    else
        echo &quot;&lt;form method=&#039;post&#039; action=&#039;$action&#039; $name&gt;\n&quot;;

}</code></pre></div><p>You need to add an extra parameter and write this function on your specific need. But i think that ajax processing and ordinary form submit can be defined on the submit button function.Try&nbsp; glance the </p><div class="codebox"><pre><code> submit</code></pre></div><p> function to know more</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-09-24T06:25:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28713#p28713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Change form multipart not using ajax]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28711#p28711" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I notice that ordinary form and multipart form (for uploading file) works differently. Ordinary form will use normal http request while multipart form use ajax. It is indicated by the url. Ordinary form change the url (if there are get variable, it will be disappear) but in multipart form it doesn&#039;t change.</p><p>This behavior cause the javascript I made that is placed after submit process is not executed. Is there any way to fix this?</p><p>I think best solution is deactivate ajax processing for multipart form.</p>]]></content>
			<author>
				<name><![CDATA[barbarian]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18954</uri>
			</author>
			<updated>2017-09-24T02:17:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28711#p28711</id>
		</entry>
</feed>
