Note that there are some explanatory texts on larger screens.

plurals
  1. PO2 Forms, 1 Submit Button and 2 actions for CRM purposes
    text
    copied!<p>Hi Experts,</p> <pre><code> I am looking to submit two forms with one submit button and sending data to </code></pre> <p>two different locations. I don't know where it is possible or not but I am sure you experts will have some solution for this problem. Many thanks for your help in advance pls find the code below.</p> <p>Form 1 (login) is sending data to login.php and Form 2 (capture Login) is sending data to CRM file capture.php.</p> <pre><code> echo "&lt;center&gt;&lt;form name=login method=post action=getlogin.php&gt;" ; echo "&lt;table border=0 cellpadding=5&gt;"; echo "&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;"; echo "&lt;td&gt;&lt;input type=text name=l_email size=35&gt;&lt;/td&gt;&lt;/tr&gt;"; echo "&lt;tr&gt;&lt;td&gt;Password &lt;/td&gt;"; echo "&lt;td&gt;&lt;input type=password name=l_password size=35&gt;&lt;/td&gt;&lt;/tr&gt;"; echo "&lt;form name=Capture Login action=//localhost:8888/modules/Webforms/capture.php method=post accept-charset=utf-8&gt;"; echo "&lt;input type=hidden name=publicid value=ec556b63988fbf6a793a1e1cf2238ef0&gt; &lt;/input&gt;"; echo "&lt;input type=hidden name=name value=Capture Login&gt;&lt;/input&gt;"; echo " &lt;/p&gt;"; echo " &lt;p&gt;"; echo " &lt;label&gt;Last Name&lt;/label&gt;"; echo " &lt;input type=text name=lastname required=true&gt;"; echo " &lt;/p&gt;"; echo " &lt;p&gt;"; echo "&lt;label&gt;Company&lt;/label&gt;"; echo "&lt;input type=text name=company required=true&gt;"; echo " &lt;/p&gt;"; echo " &lt;p&gt;"; echo "&lt;tr&gt;&lt;td&gt;&lt;input type=submit value='Login'&gt;&lt;/td&gt;"; echo "&lt;td&gt;&lt;input type=reset value='Clear Form'&gt;&lt;/td&gt;&lt;/tr&gt;"; echo "&lt;/table&gt;"; echo "&lt;/form&gt;"; echo "&lt;/form&gt;&lt;/center&gt;"; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload